| | |
| | | |
| | | return this.query(hql, args); |
| | | } |
| | | |
| | | public void pagePlanDetail(Page<InoutPlanDetail> page, Map<String, Object> param) |
| | | throws Exception { |
| | | String hql = " from " + InoutPlanDetail.class.getName() |
| | | + " where 1=1 "; |
| | | |
| | | Map<String, Object> args = new HashMap<String, Object>(); |
| | | |
| | | if (null != param) { |
| | | String str = (String) param.get("key"); |
| | | if (StringUtils.isNotEmpty(str)) { |
| | | hql += " and year like :year "; |
| | | args.put("year", "%" + str + "%"); |
| | | } |
| | | } |
| | | |
| | | String count = "select count(*) " + hql; |
| | | |
| | | hql += " order by updateTime desc"; |
| | | |
| | | this.pagingQuery(page, hql, count, args); |
| | | } |
| | | } |