소스 검색

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

hu 2 년 전
부모
커밋
a37346b858
2개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/custom/restcontroller/sale/cashbill/SQL/资金流水账查询.sql
  2. 8 0
      src/custom/restcontroller/sale/cashbill/cashbill.java

+ 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") + "' ";
+
+            }
 
         }