Prechádzať zdrojové kódy

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

hu 2 rokov pred
rodič
commit
a37346b858

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

@@ -1,6 +1,8 @@
 select t1.billno,
        t1.sa_cashbillid,
        t1.type,
+       t1.class,
+			 t1.subclass,
        t1.sa_accountclassid,
        t4.accountname,
        t1.amount,

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

@@ -857,6 +857,14 @@ public class cashbill extends Controller {
                 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("subclass") && !"".equals(whereObject.getString("subclass"))) {
+                where = where + " and t1.subclass ='" + whereObject.getString("subclass") + "' ";
+
+            }
 
         }