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

发货单明细查询添加查询已审未发

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

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

@@ -307,6 +307,13 @@ public class dispatchItems extends Controller {
             if (whereObject.containsKey("status") && !"".equals(whereObject.getString("status"))) {
                 where.append(" and t4.status ='").append(whereObject.getString("status")).append("' ");
             }
+            if (whereObject.containsKey("isnotsent") && !"".equals(whereObject.getString("isnotsent"))) {
+                if(whereObject.getBooleanValue("isnotsent")){
+                    //System.out.println(" and t4.status ='复核' and  ifnull(t1.outwarehouseqty, 0)< ifnull(t1.qty, 0)");
+                    where.append(" and t4.status ='复核' and  ifnull(t1.outwarehouseqty, 0)< ifnull(t1.qty, 0)");
+                }
+
+            }
         }
         boolean isExport = content.getBooleanValue("isExport");
         SQLFactory sqlFactory = new SQLFactory(this, "发货单明细所有列表查询", pageSize, pageNumber, pageSorting);