@Override public IValueObject searchReportByParam( Map<String, Object> params, String queryName, String resultMapName, Class cls) { List<IValueObject> vos = reportDao.searchReportByParam(params, queryName, resultMapName, cls); if (vos == null) vos = new ArrayList<IValueObject>(); int total = vos.size(); GridJsonPageData<IValueObject> data = new GridJsonPageData<IValueObject>(); data.setTotalCount(total); data.setResults(vos); return data; }
@Override public List<RegionVO> getAllRegionCombo() { List<RegionVO> res = reportDao.searchReportByParam(null, "sqlRegion", "rsRegion", RegionVO.class); return res; }