一个LIST 包含很多数据库的字段,但我用J4E导出只需要一部分字段值,如何处理
3 回复
```
List Hzunregonuresult =Daos.ext(dao, FieldFilter.create(hzunregonuresult.class, "^id|oltip|oltname|oltcj|ponid|loid|mac|inloid|inmac|inrq$")).query(hzunregonuresult.class, Cnd.wrap("inrq between '"+dft.format(begtime)+ "' and '"+dft.format(endtime)+"' AND ((rtrim(loid) =rtrim(inloid) and inloid !='') or (inmac!='' and (rtrim(mac) like '%'+rtrim(inmac) +'%' or(replace(rtrim(mac),'-','') like '%'+substring(replace(rtrim(inmac),'-',''),1,4)+'%' )))) order by inrq"));
File downfile = Files.createFileIfNoExists2(filename);
boolean isok = J4E.<hzunregonuresult>toExcel(downfile,Hzunregonuresult,null);
...
现在的问题是hzunregonuresult有除oltip|oltname|oltcj|ponid|loid|mac|inloid|inmac|inrq这些字段之外的字段,我只需要这些字段在EXCEL表中,怎么办?
添加回复
请先登陆