| | |
| | | } |
| | | hql += " where companyId =:companyId and deptId =:deptId"; |
| | | |
| | | Map<String, Object> args = new HashMap<String, Object>(); |
| | | Map<String, Object> args = new HashMap<>(); |
| | | args.put("companyId", ContextUtil.getCompanyId()); |
| | | args.put("deptId", ContextUtil.subDeptId(null)); |
| | | |
| | |
| | | |
| | | str = (String) parameter.get("key"); |
| | | if (StringUtils.isNoneEmpty(str)) { |
| | | hql += " and (customerId like:customerId or customerName like:customerName) "; |
| | | args.put("customerId", "%" + str + "%"); |
| | | hql += " and (name like:name or customerName like:customerName) "; |
| | | args.put("name", "%" + str + "%"); |
| | | args.put("customerName", "%" + str + "%"); |
| | | } |
| | | |
| | | |
| | | hql += " order by id "; |
| | | |