Browse Source

收入凭证增加归属日期筛选,默认归属日期显示在前面

hu 2 years ago
parent
commit
b3f0023c7b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/custom/restcontroller/sale/cashbill/cashbill.java

+ 4 - 1
src/custom/restcontroller/sale/cashbill/cashbill.java

@@ -442,6 +442,9 @@ public class cashbill extends Controller {
             if (whereObject.containsKey("remarks") && !"".equals(whereObject.getString("remarks"))) {
                 where = where + " and t1.remarks like'%" + whereObject.getString("remarks") + "%' ";
             }
+            if (whereObject.containsKey("period") && !"".equals(whereObject.getString("period"))) {
+                where = where + " and t1.period like'%" + whereObject.getString("period") + "%' ";
+            }
             if (whereObject.containsKey("agentinfo") && !"".equals(whereObject.getString("agentinfo"))) {
                 where = where + " and(t2.enterprisename like'%" + whereObject.getString("agentinfo") + "%'"
                         + "  or t4.agentnum like '%" + whereObject.getString("agentinfo") + "%'"
@@ -449,7 +452,7 @@ public class cashbill extends Controller {
             }
         }
         if (pageSorting.equals("''")) {
-            pageSorting = "status desc, createdate desc";
+            pageSorting = "status desc, period desc";
         }
         QuerySQL querySQL = queryList(where);
         querySQL.setOrderBy(pageSorting);