Explorar el Código

반품처리시 창고유무 조건 수정

dwkim hace 2 años
padre
commit
60df923490

+ 4 - 2
src/main/java/com/oqpo/api/service/inoutmng/ColOdrService.java

@@ -810,8 +810,10 @@ public class ColOdrService extends CommonService {
810 810
                 UserMngEntity uEntity = userMngMapper.selectGroupUserInfo(userId);
811 811
 
812 812
                 // 창고사용여부 값 가져오기
813
-                StoreBaseInfoEntity whsUseInfo = storeBaseInfoMapper.selectStoreLoanInfo(uEntity.getBrandId(), uEntity.getStoreId());
814
-                storeWhsUseYn = whsUseInfo.getWhsUseYn();
813
+                if (!"".toString().equals(saveRtnStockProcRequest.getStoreId())) {
814
+                    StoreBaseInfoEntity whsUseInfo = storeBaseInfoMapper.selectStoreLoanInfo(uEntity.getBrandId(), uEntity.getStoreId());
815
+                    storeWhsUseYn = whsUseInfo.getWhsUseYn();
816
+                }
815 817
 
816 818
                 // 여신금액 합
817 819
                 long acctbalAmt = 0 ;