From 1a47d9eef4cfe9385ce66b791de84db54a5ba87c Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期日, 25 六月 2023 20:30:36 +0800 Subject: [PATCH] 出入库流程优化-入库详单优化 --- igds-inout/src/main/java/com/ld/igds/m/service/HInoutNoticeService.java | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/igds-inout/src/main/java/com/ld/igds/m/service/HInoutNoticeService.java b/igds-inout/src/main/java/com/ld/igds/m/service/HInoutNoticeService.java index e75cb97..cd2312f 100644 --- a/igds-inout/src/main/java/com/ld/igds/m/service/HInoutNoticeService.java +++ b/igds-inout/src/main/java/com/ld/igds/m/service/HInoutNoticeService.java @@ -276,7 +276,7 @@ } 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)); @@ -302,11 +302,10 @@ 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 "; -- Gitblit v1.9.3