Compare commits

...

2 Commits

View File

@ -27,10 +27,20 @@ public class UserService {
* @throws Exception
*/
public int setStoreSave(StoreRequest storeReq) throws Exception {
int storeChk = userMapper.getStoreChk(storeReq);
int resultCnt = userMapper.setStoreSave(storeReq);
userMapper.setStoreInfoSave(storeReq);
userMapper.setStoreSapCdSave(storeReq);
userMapper.setStoreNorthModuleSave(storeReq);
// 신규판매점 등록 이면서 판매점 가격이 등록이 안되어 있는 경우 추가
if (storeReq.getPricePattern() != null
&& storeChk == 0
&& userMapper.getStoreUnitPriceChk(storeReq) == 0) {
// 등록된 가격이 없는경우 정가 가격 등록
userMapper.setStoreUnitPrice(storeReq);
}
return resultCnt;
}
@ -151,10 +161,19 @@ public class UserService {
List<StoreRequest> storeList = storeSyncResponse.getStoreList();
for (StoreRequest storeRequest : storeList) {
int storeChk = userMapper.getStoreChk(storeRequest);
userMapper.setStoreSave(storeRequest);
userMapper.setStoreInfoSave(storeRequest);
userMapper.setStoreSapCdSave(storeRequest);
userMapper.setStoreNorthModuleSave(storeRequest);
// 신규판매점 등록 이면서 판매점 가격이 등록이 안되어 있는 경우 추가
if (storeRequest.getPricePattern() != null
&& storeChk == 0
&& userMapper.getStoreUnitPriceChk(storeRequest) == 0) {
// 등록된 가격이 없는경우 정가 가격 등록
userMapper.setStoreUnitPrice(storeRequest);
}
}
List<UserRequest> userList = storeSyncResponse.getUserList();