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)";