Przeglądaj źródła

订单列表新增订单编号精确查询

沈静伟 4 lat temu
rodzic
commit
1fb568cf5f

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

@@ -91,6 +91,9 @@ public class Saorder extends Controller {
             if (whereObject.containsKey("fitemname") && !"".equals(whereObject.getString("fitemname"))) {
             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") + "%' or fitemno 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("fsonum") && !"".equals(whereObject.getString("fsonum"))) {
+                where = where + " and t1.fsonum='" + whereObject.getString("fsonum") + "'";
+            }
             if (whereObject.containsKey("fodertype") && !"".equals(whereObject.getString("fodertype"))) {
             if (whereObject.containsKey("fodertype") && !"".equals(whereObject.getString("fodertype"))) {
                 String fodertype = whereObject.getString("fodertype");
                 String fodertype = whereObject.getString("fodertype");
                 if ("needsubmit".equals(fodertype)) {
                 if ("needsubmit".equals(fodertype)) {