Browse Source

창고 팝업 구분자 추가로 수정조치함

dwkim 2 years ago
parent
commit
98fcdf8d27

+ 3 - 2
src/main/java/com/oqpo/api/service/stockmng/WhsMngService.java

@@ -249,7 +249,7 @@ public class WhsMngService extends CommonService {
249
     /*
249
     /*
250
         창고 팝업 검색
250
         창고 팝업 검색
251
      */
251
      */
252
-    public GridResponse searchPopWhsLocationList(String sBrandId, String sStoreId, String sWhsNm, GridRequest gridRequest) throws Exception {
252
+    public GridResponse searchPopWhsLocationList(String sBrandId, String sStoreId, String sWhsNm, String sWhsDvsn,  GridRequest gridRequest) throws Exception {
253
 
253
 
254
         int gridPage = gridRequest.getGridPage();
254
         int gridPage = gridRequest.getGridPage();
255
         int gridSize = gridRequest.getGridSize();
255
         int gridSize = gridRequest.getGridSize();
@@ -258,11 +258,12 @@ public class WhsMngService extends CommonService {
258
         int gridTotal = 0;
258
         int gridTotal = 0;
259
 
259
 
260
         //창고구분(브랜드 W01/매장 W02)
260
         //창고구분(브랜드 W01/매장 W02)
261
+        /*
261
         String sWhsDvsn = "W01";
262
         String sWhsDvsn = "W01";
262
         if (!"".equals(sStoreId) && sStoreId != null) {
263
         if (!"".equals(sStoreId) && sStoreId != null) {
263
             sWhsDvsn = "W02";
264
             sWhsDvsn = "W02";
264
         }
265
         }
265
-
266
+        */
266
         List<WhsMgntBaseInfoEntity> entities = whsMngMapper.selectPopWhsLocList(sBrandId, sWhsDvsn, sStoreId, sWhsNm);
267
         List<WhsMgntBaseInfoEntity> entities = whsMngMapper.selectPopWhsLocList(sBrandId, sWhsDvsn, sStoreId, sWhsNm);
267
 
268
 
268
         List<Object> gridRows = entities.stream()
269
         List<Object> gridRows = entities.stream()

+ 1 - 0
src/main/java/com/oqpo/api/web/controller/stockmng/WhsMngController.java

@@ -157,6 +157,7 @@ public class WhsMngController {
157
         return ResponseEntity.ok(whsMngService.searchPopWhsLocationList(popWhsLocationRequest.getSBrandId()
157
         return ResponseEntity.ok(whsMngService.searchPopWhsLocationList(popWhsLocationRequest.getSBrandId()
158
                                                                         , popWhsLocationRequest.getSStoreId()
158
                                                                         , popWhsLocationRequest.getSStoreId()
159
                                                                         , popWhsLocationRequest.getSWhsNm()
159
                                                                         , popWhsLocationRequest.getSWhsNm()
160
+                                                                        , popWhsLocationRequest.getSWhsDvsn()
160
                                                                         , popWhsLocationRequest.toDTO(popWhsLocationRequest)   ));
161
                                                                         , popWhsLocationRequest.toDTO(popWhsLocationRequest)   ));
161
     }
162
     }
162
 }
163
 }

+ 3 - 0
src/main/java/com/oqpo/api/web/dto/request/stockmng/PopWhsLocationRequest.java

@@ -23,6 +23,9 @@ public class PopWhsLocationRequest extends GridRequest {
23
     @ApiModelProperty(value = "창고명")
23
     @ApiModelProperty(value = "창고명")
24
     private String sWhsNm;
24
     private String sWhsNm;
25
 
25
 
26
+    @ApiModelProperty(value = "창고구분")
27
+    private String sWhsDvsn;
28
+
26
     protected PopWhsLocationRequest(Integer gridSize, Integer gridPage, String sidx, String sord, Boolean pagingYn, Integer gridFirst) {
29
     protected PopWhsLocationRequest(Integer gridSize, Integer gridPage, String sidx, String sord, Boolean pagingYn, Integer gridFirst) {
27
         super(gridSize, gridPage, sidx, sord, pagingYn, gridFirst);
30
         super(gridSize, gridPage, sidx, sord, pagingYn, gridFirst);
28
     }
31
     }

+ 2 - 0
src/main/resources/mybatis/sqlmaps/stockmng/WhsMng.xml

@@ -262,7 +262,9 @@
262
         left outer join whs_mgnt_base_loc locInfo on whsInfo.brand_id = locInfo.brand_id and whsInfo.whs_id = locInfo.whs_id and locInfo.loc_st_cd = 'LOC001'
262
         left outer join whs_mgnt_base_loc locInfo on whsInfo.brand_id = locInfo.brand_id and whsInfo.whs_id = locInfo.whs_id and locInfo.loc_st_cd = 'LOC001'
263
         where whsInfo.whs_st_cd = 'W001'
263
         where whsInfo.whs_st_cd = 'W001'
264
         and   whsInfo.brand_id = #{sBrandId}
264
         and   whsInfo.brand_id = #{sBrandId}
265
+        <if test="sWhsDvsn != null and sWhsDvsn != ''">
265
         and   whsInfo.whs_dvsn = #{sWhsDvsn}
266
         and   whsInfo.whs_dvsn = #{sWhsDvsn}
267
+        </if>
266
         <if test="sStoreId != null and sStoreId != ''">
268
         <if test="sStoreId != null and sStoreId != ''">
267
             and   whsInfo.store_id = #{sStoreId}
269
             and   whsInfo.store_id = #{sStoreId}
268
         </if>
270
         </if>