瀏覽代碼

增加查询条件

gaodd 1 年之前
父節點
當前提交
c390068aeb

+ 3 - 3
src/main/java/com/chinaitop/depot/storage/controller/ClearanceConfirmationController.java

@@ -60,7 +60,7 @@ public class ClearanceConfirmationController {
60 60
     })
61 61
     public PageInfo<ClearanceConfirmation> getCleConList(Integer pageNum, Integer pageSize,
62 62
                                                      String storeName,
63
-                                                     String ajmc, Integer orgId) {
63
+                                                     Integer warehouseId, Integer orgId) {
64 64
         Map<String, Object> modelMap = new HashMap<String, Object>();
65 65
         if (pageNum != null && pageSize != null) {
66 66
             PageHelper.startPage(pageNum, pageSize);
@@ -71,8 +71,8 @@ public class ClearanceConfirmationController {
71 71
             if (null != storeName && !"".equals(storeName)) {
72 72
                 modelMap.put("storehouseName", storeName);
73 73
             }
74
-            if (null != ajmc && !"".equals(ajmc)) {
75
-                modelMap.put("ajmc", ajmc);
74
+            if (null != warehouseId && !"".equals(warehouseId)) {
75
+                modelMap.put("warehouseId", warehouseId);
76 76
             }
77 77
             /* 只能查询当前单位的数据  */
78 78
             if (null != orgId) {

+ 3 - 0
src/main/java/com/chinaitop/depot/storage/mapper/ClearanceConfirmationMapper.xml

@@ -114,6 +114,9 @@ cc.updatename updatename,cc.updatedate updatedate,cc.warehouse_id
114 114
     <if test="orgId != null">
115 115
       AND AB.org_id = #{orgId,jdbcType=INTEGER}
116 116
     </if>
117
+    <if test="warehouseId != null">
118
+      AND cc.warehouse_id = #{warehouseId,jdbcType=INTEGER}
119
+    </if>
117 120
     AND (cc.czbz = 'i' OR cc.czbz = 'u')
118 121
     order by cc.id desc
119 122
   </select>