Browse Source

商品补货分析:产品信息/模糊搜索(增加规格)

eganwu 1 year ago
parent
commit
e3606d4f04
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/custom/restcontroller/webmanage/sale/invbal/invbal.java

+ 3 - 1
src/custom/restcontroller/webmanage/sale/invbal/invbal.java

@@ -358,7 +358,9 @@ public class invbal extends Controller {
             JSONObject whereObject = content.getJSONObject("where");
             if (whereObject.containsKey("iteminfo")) {
                 if (!StringUtils.isBlank(whereObject.getStringValue("iteminfo"))) {
-                    where = where + " and (t2.itemno like '%" + whereObject.getStringValue("iteminfo") + "%' or t2.itemname like '%" + whereObject.getStringValue("iteminfo") + "%') ";
+                    where = where + " and (t2.itemno like '%" + whereObject.getStringValue("iteminfo")
+                            + "%' or t2.itemname like '%" + whereObject.getStringValue("iteminfo")
+                            + "%' or t2.standards like '%" + whereObject.getStringValue("iteminfo") + "%') ";
                 }
             }
             if (whereObject.containsKey("itemclassids")) {