| | |
| | | } |
| | | |
| | | String countHql = "select count(*) " + hql; |
| | | hql += " order by batchId desc"; |
| | | hql += " order by receiveDate desc"; |
| | | |
| | | this.pagingQuery(page, hql, countHql, args); |
| | | } |
| | | |
| | | |
| | | public void getData(Page<PestData> page, Map<String, Object> parameter) throws Exception { |
| | | if (null == parameter) { |
| | | parameter = new HashMap<String, Object>(); |
| | | } |
| | | |
| | | Map<String, Object> args = new HashMap<String, Object>(); |
| | | |
| | | String hql = " from " + Pest.class.getName() + " where 1=1 "; |
| | | |
| | | String arg = (String) parameter.get("depotId"); |
| | | if (StringUtils.isNotEmpty(arg)) { |
| | | hql += " and depotId = :depotId"; |
| | | args.put("depotId", arg); |
| | | } |
| | | |
| | | |
| | | String countHql = "select count(*) " + hql; |
| | | hql += " order by receiveDate desc"; |
| | | |
| | | this.pagingQuery(page, hql, countHql, args); |
| | | } |
| | | |
| | | public void pageData(Page<Pest> page, Map<String, Object> param) |
| | | throws Exception { |