| | |
| | | public GenericPager<Map<String, Object>> getListWithPage(WhWarningQry param) { |
| | | StringBuilder sql = new StringBuilder(GET_LIST_WITH_PAGE); |
| | | HashMap<String, Object> paramts = new HashMap<>(); |
| | | if (param.getStates() != null){ |
| | | if (param.getStates() != null) { |
| | | sql.append(" AND wareWarn.states = :states"); |
| | | paramts.put("states", param.getStates()); |
| | | } |
| | |
| | | sql.append(" AND goodsTemp.GOODS_NAME like :goodsTemplateName"); |
| | | paramts.put("goodsTemplateName", StringUtils.CHAR_PERCENT + param.getGoodsTemplateName() + StringUtils.CHAR_PERCENT); |
| | | } |
| | | if (param.getGoodsTemplateId() != null) { |
| | | sql.append(" AND goodsTemp.id=:goodsTemplateId"); |
| | | paramts.put("goodsTemplateId", param.getGoodsTemplateId()); } |
| | | //分类 |
| | | if (param.getCategoryId() != null) { |
| | | sql.append(" AND cate.id=:categoryId"); |