CZT
2023-11-27 c206acfaedc69c390fb67daa81bc686f58a212ef
igds-basic/src/main/java/com/ld/igds/pest/service/HPestDataService.java
@@ -19,7 +19,7 @@
import com.ld.igds.util.DateUtil;
/**
 *
 *
 * @author: andy.jia
 * @description:
 * @version:
@@ -34,7 +34,7 @@
      if (null == parameter) {
         parameter = new HashMap<String, Object>();
      }
      Map<String, Object> args = new HashMap<String, Object>();
      // 默认获取6个月的数据信息
@@ -65,12 +65,33 @@
      }
      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 {