public List<ElecFileUpload> findFileUploadListByCondition(
ElecFileUpload elecFileUpload) {
String condition = "";
List<Object> paramsList = new ArrayList<Object>();
//所属单位
String projId = elecFileUpload.getProjId();
if(StringUtils.isNotBlank(projId)){
condition += " and o.projId = ?";
paramsList.add(projId);
}
//图纸类别
String belongTo = elecFileUpload.getBelongTo();
if(StringUtils.isNotBlank(belongTo)){
condition += " and o.belongTo = ?";
paramsList.add(belongTo);
}
Object [] params = paramsList.toArray();
//排序
Map<String, String> orderby = new LinkedHashMap<String, String>();
orderby.put("o.progressTime", "asc");
List<ElecFileUpload> list=Daos.ext(dao, filter);
****List<ElecFileUpload> list = elecFileUploadDao.findCollectionByConditionNoPage(condition, params, orderby); return list; } 上述是我在SSH中写的,
请问如果用nutz中的daos 我该如何改进查询这行语句【List list = elecFileUploadDao.findCollectionByConditionNoPage(condition, params, orderby);】