From 69cd9f59a0fabf12f8c9147fcba7f69817a870b3 Mon Sep 17 00:00:00 2001
From: jiazx0107@163.com <jiazx0107@163.com>
Date: 星期一, 06 十一月 2023 23:40:59 +0800
Subject: [PATCH] 更新仓内抓拍2

---
 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 85d500c..57eadbb 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
@@ -19,7 +19,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) {
@@ -39,14 +39,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("noticeId");

--
Gitblit v1.9.3