查询出的结果有部分字段无法注入到对象中 使用的 oracle数据库
sql 为 select DATARESULT from ( select b.comname as comName,bo.comname as deptname,c.codecode as dataNew,c.codename as flagnew,f.* from ( select * from eidataresult e where e.facyear=2020 and e.facmonth=3 ) f left join branchinfo b on f.companyCode =b.comcode left join branchinfo bo on f.deptno =bo.comcode left join (select distinct(factor.faccode),factor.datasource from factordefine factor) fa on f.faccode =fa.faccode left join codemanage c on c.codecode=fa.datasource and c.codetype='datasource') p where 1=1 and p.flag='1' or ( p.flag='2' and p.deptno in (select distinct d.deptno from KriTask d where d.approval='D' and d.facyear=2020 and d.facmonth=3 ) ) order by p.companycode, p.faccode
这是数据库执行的结果 但是无法注入到 实体类 中 实体类字段类型为string 数据库为 varchar2 查询使用的mybatis
然后 我直接 写了一条这样的语句进行测试 select DATARESULT from eidataresult 竟然 注入成功了 有没有大佬知道是什么问题的。谢谢
不知道你这个问题是否已经解决, 如果还没有解决的话: