From 5b685f36fbce3ce5972607dc7e7d6e908f1de2cf Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Sat, 25 Apr 2020 10:24:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E4=BA=8E=E6=9D=A1=E7=A0=81=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/zzjee/wm/controller/WvStockController.java | 3 ++- src/main/java/com/zzjee/wmapi/controller/WvGiController.java | 3 ++- .../java/com/zzjee/wmapi/controller/WvGiNoticeController.java | 2 +- .../java/com/zzjee/wmapi/controller/WvNoticeController.java | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zzjee/wm/controller/WvStockController.java b/src/main/java/com/zzjee/wm/controller/WvStockController.java index 0e07d426..83652947 100644 --- a/src/main/java/com/zzjee/wm/controller/WvStockController.java +++ b/src/main/java/com/zzjee/wm/controller/WvStockController.java @@ -853,9 +853,10 @@ public class WvStockController extends BaseController { } else { insearch = "goodsId = '" + s + "'"; } - hql = hql + " and (" + insearch + ")"; } + hql = hql + " and ( " + insearch + ") "; + } // hql=hql+" and goodsId in (:alist)"; diff --git a/src/main/java/com/zzjee/wmapi/controller/WvGiController.java b/src/main/java/com/zzjee/wmapi/controller/WvGiController.java index 57544dc5..7ec02d18 100644 --- a/src/main/java/com/zzjee/wmapi/controller/WvGiController.java +++ b/src/main/java/com/zzjee/wmapi/controller/WvGiController.java @@ -370,9 +370,10 @@ public class WvGiController extends BaseController { } else { insearch = "goodsId = '" + s + "'"; } - hql = hql + " and (" + insearch + ")"; } + hql = hql + " and (" + insearch + ")"; + } } diff --git a/src/main/java/com/zzjee/wmapi/controller/WvGiNoticeController.java b/src/main/java/com/zzjee/wmapi/controller/WvGiNoticeController.java index 32180563..58dd2ff3 100644 --- a/src/main/java/com/zzjee/wmapi/controller/WvGiNoticeController.java +++ b/src/main/java/com/zzjee/wmapi/controller/WvGiNoticeController.java @@ -372,9 +372,9 @@ public class WvGiNoticeController extends BaseController { } else { insearch = "goodsId = '" + s + "'"; } - hql = hql + " and (" + insearch + ")"; } + hql = hql + " and (" + insearch + ")"; } diff --git a/src/main/java/com/zzjee/wmapi/controller/WvNoticeController.java b/src/main/java/com/zzjee/wmapi/controller/WvNoticeController.java index e5d6dc00..6da99c36 100644 --- a/src/main/java/com/zzjee/wmapi/controller/WvNoticeController.java +++ b/src/main/java/com/zzjee/wmapi/controller/WvNoticeController.java @@ -357,9 +357,9 @@ public class WvNoticeController extends BaseController { } else { insearch = "goodsCode = '" + s + "'"; } - hql = hql + " and (" + insearch + ")"; } + hql = hql + " and (" + insearch + ")"; } // hql=hql+" and goodsCode in (:alist)";