Quellcode durchsuchen

发票申请列表查询新增开始时间及结束时间

沈静伟 vor 4 Jahren
Ursprung
Commit
5f0d5eaf32

+ 6 - 0
src/rest/openapi/restcontroller/wechatapp/tinvoiceapply/Tinvoiceapply.java

@@ -34,6 +34,12 @@ public class Tinvoiceapply extends Controller {
             if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
                 where = where + " and t1.finvoicename like'%" + whereObject.getString("condition") + "%'";
             }
+            if (whereObject.containsKey("fbegdate") && !"".equals(whereObject.getString("fbegdate"))) {
+                where = where + " and t1.createdate >='" + whereObject.getString("fbegdate") + "'";
+            }
+            if (whereObject.containsKey("fenddate") && !"".equals(whereObject.getString("fenddate"))) {
+                where = where + " and t1.createdate <='" + whereObject.getString("fenddate") + "'";
+            }
         }
         SQLFactory factory = new SQLFactory(this, "¾­ÏúÉÌ·¢Æ±Áбí²éѯ", pageSize, pageNumber, sort);
         factory.addParameter("fagentnum", fagentnum);

+ 6 - 0
src/rest/openapi/restcontroller/wechatapp/tinvoiceapply/Tinvoiceapply_saler.java

@@ -34,6 +34,12 @@ public class Tinvoiceapply_saler extends Controller {
             if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
                 where = where + " and t1.finvoicename like'%" + whereObject.getString("condition") + "%'";
             }
+            if (whereObject.containsKey("fbegdate") && !"".equals(whereObject.getString("fbegdate"))) {
+                where = where + " and t1.createdate >='" + whereObject.getString("fbegdate") + "'";
+            }
+            if (whereObject.containsKey("fenddate") && !"".equals(whereObject.getString("fenddate"))) {
+                where = where + " and t1.createdate <='" + whereObject.getString("fenddate") + "'";
+            }
         }
 
         DBConnect connect = new DBConnect();