Kaynağa Gözat

창ㄱㅗㄱㅘㄴㅣㄹㅔㄱㅣㅐㄴ

dwkim 2 yıl önce
ebeveyn
işleme
d74820ca67

+ 5 - 8
src/main/java/com/oqpo/api/service/stinfo/StoreBaseInfoService.java

@@ -352,18 +352,15 @@ public class StoreBaseInfoService extends CommonService {
352 352
                     whsStCd = "W003";
353 353
                     whschk = "2";
354 354
                 } else {
355
-                    /*
356
-                    if (!oldStoreInfo.getWhsUseYn().equals(entity.getWhsUseYn())) {
357
-                        if ("Y".equals(entity.getWhsUseYn())) {
355
+
356
+                    if (!oldStoreInfo.getStoreStCd().equals(entity.getStoreStCd())) {
357
+                        if ("ST03".equals(oldStoreInfo.getStoreStCd())) {
358 358
                             whsStCd = "W001";
359 359
                             locStCd = "LOC001";
360
-                        } else {
361
-                            whsStCd = "W003";
362
-                            locStCd = "LOC003";
360
+                            whschk = "2";
363 361
                         }
364
-                        whschk = "2";
365 362
                     }
366
-                    */
363
+
367 364
                 }
368 365
 
369 366
                 if ("2".toString().equals(whschk)) {

+ 1 - 1
src/main/resources/mybatis/sqlmaps/stinfo/Store.xml

@@ -226,7 +226,7 @@
226 226
     </select>
227 227
 
228 228
     <select id="selectStoreLoanInfo" resultType="com.oqpo.api.entity.stinfo.StoreBaseInfoEntity">
229
-        select loan_mgnt_unq_no,loan_dvsn,nvl(limit_amt,0) as limit_amt, nvl(whs_use_yn,'N') as whs_use_yn
229
+        select loan_mgnt_unq_no,loan_dvsn,nvl(limit_amt,0) as limit_amt, nvl(whs_use_yn,'N') as whs_use_yn, store_st_cd
230 230
         from store_base_info
231 231
         where 1=1
232 232
         and brand_id = #{brandId}