Pārlūkot izejas kodu

物流管理搜索

eganwu 1 gadu atpakaļ
vecāks
revīzija
fb60e0b6ab

+ 5 - 2
src/custom/restcontroller/webmanage/sale/logistics/LSALogistics.java

@@ -190,8 +190,11 @@ public class LSALogistics extends Controller {
         if (content.containsKey("where")) {
             JSONObject whereObject = content.getJSONObject("where");
             if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
-                where.append("and (t1.itemname like '%").append(whereObject.getString("condition")).append("%'");
-                where.append("or t1.itemno like '%").append(whereObject.getString("condition")).append("%'");
+                where.append("and (t3.itemname like '%").append(whereObject.getString("condition")).append("%'");
+                where.append("or t2.billno like '%").append(whereObject.getString("condition")).append("%'");
+                where.append("or t3.itemno like '%").append(whereObject.getString("condition")).append("%'");
+                where.append("or t3.spec like '%").append(whereObject.getString("condition")).append("%'");
+                where.append("or t3.model like '%").append(whereObject.getString("condition")).append("%'");
                 where.append("or t1.remarks like '%").append(whereObject.getString("condition")).append("%')");
             }
         }