Преглед изворни кода

商品档案列表查询新增是否中线蝶阀,以及其他7个字段的过滤

沈静伟 пре 3 година
родитељ
комит
3b8fd32989
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      src/rest/openapi/restcontroller/wechatapp/titem/Titem.java

+ 6 - 0
src/rest/openapi/restcontroller/wechatapp/titem/Titem.java

@@ -115,6 +115,9 @@ public class Titem extends Controller {
             if (whereObject.containsKey("fvalue2") && !"".equals(whereObject.getString("fvalue2"))) {
                 where = where + " and t1.fvalue2 ='" + whereObject.getString("fvalue2") + "'";
             }
+            if (whereObject.containsKey("fvalue1") && !"".equals(whereObject.getString("fvalue1"))) {
+                where = where + " and t1.fvalue1 ='" + whereObject.getString("fvalue1") + "'";
+            }
         }
         /**
          * SQL货品档案查询参数设置并查询
@@ -945,6 +948,9 @@ public class Titem extends Controller {
             if (whereObject.containsKey("fvalue2") && !"".equals(whereObject.getString("fvalue2"))) {
                 where = where + " and t1.fvalue2 ='" + whereObject.getString("fvalue2") + "'";
             }
+            if (whereObject.containsKey("fvalue1") && !"".equals(whereObject.getString("fvalue1"))) {
+                where = where + " and t1.fvalue1 ='" + whereObject.getString("fvalue1") + "'";
+            }
         }
         /**
          * SQL货品档案查询参数设置并查询