소스 검색

商品档案列表查询新增是否中线蝶阀,以及其他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货品档案查询参数设置并查询