Explorar el Código

增加查询条件

gaodd hace 1 año
padre
commit
c390068aeb

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

@@ -60,7 +60,7 @@ public class ClearanceConfirmationController {
60
     })
60
     })
61
     public PageInfo<ClearanceConfirmation> getCleConList(Integer pageNum, Integer pageSize,
61
     public PageInfo<ClearanceConfirmation> getCleConList(Integer pageNum, Integer pageSize,
62
                                                      String storeName,
62
                                                      String storeName,
63
-                                                     String ajmc, Integer orgId) {
63
+                                                     Integer warehouseId, Integer orgId) {
64
         Map<String, Object> modelMap = new HashMap<String, Object>();
64
         Map<String, Object> modelMap = new HashMap<String, Object>();
65
         if (pageNum != null && pageSize != null) {
65
         if (pageNum != null && pageSize != null) {
66
             PageHelper.startPage(pageNum, pageSize);
66
             PageHelper.startPage(pageNum, pageSize);
@@ -71,8 +71,8 @@ public class ClearanceConfirmationController {
71
             if (null != storeName && !"".equals(storeName)) {
71
             if (null != storeName && !"".equals(storeName)) {
72
                 modelMap.put("storehouseName", storeName);
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
             if (null != orgId) {
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
     <if test="orgId != null">
114
     <if test="orgId != null">
115
       AND AB.org_id = #{orgId,jdbcType=INTEGER}
115
       AND AB.org_id = #{orgId,jdbcType=INTEGER}
116
     </if>
116
     </if>
117
+    <if test="warehouseId != null">
118
+      AND cc.warehouse_id = #{warehouseId,jdbcType=INTEGER}
119
+    </if>
117
     AND (cc.czbz = 'i' OR cc.czbz = 'u')
120
     AND (cc.czbz = 'i' OR cc.czbz = 'u')
118
     order by cc.id desc
121
     order by cc.id desc
119
   </select>
122
   </select>