From dfd793f14e51c48c3322f1b36f543179043bd45d Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期日, 22 十月 2023 18:25:27 +0800 Subject: [PATCH] 更新仓内抓拍 --- igds-inout/src/main/java/com/ld/igds/inout/service/HInoutReportService.java | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/igds-inout/src/main/java/com/ld/igds/inout/service/HInoutReportService.java b/igds-inout/src/main/java/com/ld/igds/inout/service/HInoutReportService.java index 3083052..3a863c0 100644 --- a/igds-inout/src/main/java/com/ld/igds/inout/service/HInoutReportService.java +++ b/igds-inout/src/main/java/com/ld/igds/inout/service/HInoutReportService.java @@ -18,7 +18,7 @@ String hql = " from " + InoutRecord.class.getName() + " where companyId=:companyId "; - Map<String, Object> args = new HashMap<String, Object>(); + Map<String, Object> args = new HashMap<>(); args.put("companyId", ContextUtil.getCompanyId()); if (null != param) { @@ -38,14 +38,8 @@ if (StringUtils.isNotEmpty(str)) { hql += " and type=:type "; args.put("type", str); - } - - str = (String) param.get("type"); - if (StringUtils.isEmpty(str)) { + }else{ hql += " and type <> 'LOSS' and type <> 'OVER'"; - } else { - hql += " and type=:type "; - args.put("type", str); } str = (String) param.get("customerId"); -- Gitblit v1.9.3