public GridResult queryFactorDtlGridByFactorNo(ISearch search, IRequest params) {
if (params.containsKey("factorNo") && !CapString.isEmpty(params.get("factorNo"))) {
search.addSearchModeParameters(SearchMode.EQUALS, "factorNo",
params.get("factorNo"));
}else{
return new GridResult();
}
Page<DivFtDtl> page = commonService.findPage(DivFtDtl.class, search);
Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
fmt.put("updateTime", new ADDateFormatter());
return new GridResult(page.getContent(), page.getTotalRow(), fmt);
}// ;