浏览代码

经销商端账户流水优化(增加分类和分类明细)

hu 2 年之前
父节点
当前提交
1c45feaec3

+ 2 - 0
src/custom/restcontroller/sale/cashbill/SQL/资金流水账查询.sql

@@ -1,5 +1,7 @@
 select t1.billno,
 select t1.billno,
        t1.type,
        t1.type,
+       t1.class,
+			 t1.subclass,
        t1.sa_accountclassid,
        t1.sa_accountclassid,
        t4.accountname,
        t4.accountname,
        t1.amount,
        t1.amount,

+ 11 - 0
src/custom/restcontroller/sale/cashbill/cashbill.java

@@ -903,7 +903,18 @@ public class cashbill extends Controller {
                 where = where + " and t1.type ='" + whereObject.getString("type") + "' ";
                 where = where + " and t1.type ='" + whereObject.getString("type") + "' ";
 
 
             }
             }
+            if (whereObject.containsKey("class") && !"".equals(whereObject.getString("class"))) {
+                where = where + " and t1.class ='" + whereObject.getString("class") + "' ";
 
 
+            }
+            if (whereObject.containsKey("class") && !"".equals(whereObject.getString("class"))) {
+                where = where + " and t1.class ='" + whereObject.getString("class") + "' ";
+
+            }
+            if (whereObject.containsKey("subclass") && !"".equals(whereObject.getString("subclass"))) {
+                where = where + " and t1.subclass ='" + whereObject.getString("subclass") + "' ";
+
+            }
 
 
         }
         }