public GridResult queryFactorDetailByFactorNo(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());
fmt.put("rangeNm", new RangeNmFormatter());
fmt.put("factorNm", new FactorNmFormatter());
return new GridResult(page.getContent(), page.getTotalRow(), fmt);
}// ;