浏览代码

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

dwkim 2 年之前
父节点
当前提交
d74820ca67

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

@@ -352,18 +352,15 @@ public class StoreBaseInfoService extends CommonService {
352
                     whsStCd = "W003";
352
                     whsStCd = "W003";
353
                     whschk = "2";
353
                     whschk = "2";
354
                 } else {
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
                             whsStCd = "W001";
358
                             whsStCd = "W001";
359
                             locStCd = "LOC001";
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
                 if ("2".toString().equals(whschk)) {
366
                 if ("2".toString().equals(whschk)) {

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

@@ -226,7 +226,7 @@
226
     </select>
226
     </select>
227
 
227
 
228
     <select id="selectStoreLoanInfo" resultType="com.oqpo.api.entity.stinfo.StoreBaseInfoEntity">
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
         from store_base_info
230
         from store_base_info
231
         where 1=1
231
         where 1=1
232
         and brand_id = #{brandId}
232
         and brand_id = #{brandId}