Bladeren bron

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

dwkim 2 jaren geleden
bovenliggende
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 254
         int gridPage = gridRequest.getGridPage();
255 255
         int gridSize = gridRequest.getGridSize();
@@ -258,11 +258,12 @@ public class WhsMngService extends CommonService {
258 258
         int gridTotal = 0;
259 259
 
260 260
         //창고구분(브랜드 W01/매장 W02)
261
+        /*
261 262
         String sWhsDvsn = "W01";
262 263
         if (!"".equals(sStoreId) && sStoreId != null) {
263 264
             sWhsDvsn = "W02";
264 265
         }
265
-
266
+        */
266 267
         List<WhsMgntBaseInfoEntity> entities = whsMngMapper.selectPopWhsLocList(sBrandId, sWhsDvsn, sStoreId, sWhsNm);
267 268
 
268 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 157
         return ResponseEntity.ok(whsMngService.searchPopWhsLocationList(popWhsLocationRequest.getSBrandId()
158 158
                                                                         , popWhsLocationRequest.getSStoreId()
159 159
                                                                         , popWhsLocationRequest.getSWhsNm()
160
+                                                                        , popWhsLocationRequest.getSWhsDvsn()
160 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 23
     @ApiModelProperty(value = "창고명")
24 24
     private String sWhsNm;
25 25
 
26
+    @ApiModelProperty(value = "창고구분")
27
+    private String sWhsDvsn;
28
+
26 29
     protected PopWhsLocationRequest(Integer gridSize, Integer gridPage, String sidx, String sord, Boolean pagingYn, Integer gridFirst) {
27 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 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 263
         where whsInfo.whs_st_cd = 'W001'
264 264
         and   whsInfo.brand_id = #{sBrandId}
265
+        <if test="sWhsDvsn != null and sWhsDvsn != ''">
265 266
         and   whsInfo.whs_dvsn = #{sWhsDvsn}
267
+        </if>
266 268
         <if test="sStoreId != null and sStoreId != ''">
267 269
             and   whsInfo.store_id = #{sStoreId}
268 270
         </if>