public class DwVo {
private String path;
}
<select id="getDwById" resultType="com.tt.DwVo">
select PATH
from dw
where dw_no = #{dw_no}
and time = #{time}
</select>
public String getReDetailById(DwDto dwDto) {
List<DwVo> dwVos = dwDao.getDwById(dwDto);
DwVo dwVo = dwVos.get(0);
return dwVo.getPath();
}
我是用String类型来接CLOB的这样的实体类Vo是可以的,但是还是没法在sql语句进行去重,我只能在java代码进行获取一个数据来实现去重,因为我是jdk7,高版本用Stream可以
标签:应为,String,clob,no,dwDto,数据类型,dw From: https://www.cnblogs.com/tianijfeile/p/18347386