Jelajahi Sumber

订单列表新增商品编号查询

沈静伟 4 tahun lalu
induk
melakukan
e63644d809

+ 1 - 1
src/rest/openapi/restcontroller/wechatapp/saorder/Saorder.java

@@ -89,7 +89,7 @@ public class Saorder extends Controller {
                 where = where + " and t1.ftype in (" + inwhere + ")";
             }
             if (whereObject.containsKey("fitemname") && !"".equals(whereObject.getString("fitemname"))) {
-                where = where + " and exists(select *from saorderdetail where fparentid=t1.saorderid and fitemname like'%" + whereObject.getString("fitemname") + "%')";
+                where = where + " and exists(select *from saorderdetail where fparentid=t1.saorderid and (fitemname like'%" + whereObject.getString("fitemname") + "%' or fitemno like'%" + whereObject.getString("fitemname") + "%'))";
             }
             if (whereObject.containsKey("fodertype") && !"".equals(whereObject.getString("fodertype"))) {
                 String fodertype = whereObject.getString("fodertype");