Просмотр исходного кода

订单发货单明细查询添加按状态查询

hu 3 лет назад
Родитель
Сommit
0c4c2774e4

+ 3 - 0
src/custom/restcontroller/webmanage/sale/dispatch/dispatchItems.java

@@ -290,6 +290,9 @@ public class dispatchItems extends Controller {
             if (whereObject.containsKey("enddate") && !"".equals(whereObject.getString("enddate"))) {
                 where.append(" and t4.billdate <='").append(whereObject.getString("enddate")).append("' ");
             }
+            if (whereObject.containsKey("status") && !"".equals(whereObject.getString("status"))) {
+                where.append(" and t4.status ='").append(whereObject.getString("status")).append("' ");
+            }
         }
         boolean isExport = content.getBooleanValue("isExport");
         SQLFactory sqlFactory = new SQLFactory(this, "发货单明细所有列表查询", pageSize, pageNumber, pageSorting);

+ 3 - 0
src/custom/restcontroller/webmanage/sale/order/OrderItems.java

@@ -512,6 +512,9 @@ public class OrderItems extends Controller {
             if (whereObject.containsKey("enddate") && !"".equals(whereObject.getString("enddate"))) {
                 where.append(" and t5.billdate <='").append(whereObject.getString("enddate")).append("' ");
             }
+            if (whereObject.containsKey("status") && !"".equals(whereObject.getString("status"))) {
+                where.append(" and t5.status ='").append(whereObject.getString("status")).append("' ");
+            }
         }
 
         boolean isExport = content.getBooleanValue("isExport");