Merge pull request 'dev' (#348) from dev into dev-deploy
Reviewed-on: #348
This commit is contained in:
commit
f9bbe04a9c
@ -27,10 +27,20 @@ public class UserService {
|
|||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public int setStoreSave(StoreRequest storeReq) throws Exception {
|
public int setStoreSave(StoreRequest storeReq) throws Exception {
|
||||||
|
int storeChk = userMapper.getStoreChk(storeReq);
|
||||||
|
|
||||||
int resultCnt = userMapper.setStoreSave(storeReq);
|
int resultCnt = userMapper.setStoreSave(storeReq);
|
||||||
userMapper.setStoreInfoSave(storeReq);
|
userMapper.setStoreInfoSave(storeReq);
|
||||||
userMapper.setStoreSapCdSave(storeReq);
|
userMapper.setStoreSapCdSave(storeReq);
|
||||||
userMapper.setStoreNorthModuleSave(storeReq);
|
userMapper.setStoreNorthModuleSave(storeReq);
|
||||||
|
|
||||||
|
// 신규판매점 등록 이면서 판매점 가격이 등록이 안되어 있는 경우 추가
|
||||||
|
if (storeReq.getPricePattern() != null
|
||||||
|
&& storeChk == 0
|
||||||
|
&& userMapper.getStoreUnitPriceChk(storeReq) == 0) {
|
||||||
|
// 등록된 가격이 없는경우 정가 가격 등록
|
||||||
|
userMapper.setStoreUnitPrice(storeReq);
|
||||||
|
}
|
||||||
return resultCnt;
|
return resultCnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,10 +161,19 @@ public class UserService {
|
|||||||
|
|
||||||
List<StoreRequest> storeList = storeSyncResponse.getStoreList();
|
List<StoreRequest> storeList = storeSyncResponse.getStoreList();
|
||||||
for (StoreRequest storeRequest : storeList) {
|
for (StoreRequest storeRequest : storeList) {
|
||||||
|
int storeChk = userMapper.getStoreChk(storeRequest);
|
||||||
userMapper.setStoreSave(storeRequest);
|
userMapper.setStoreSave(storeRequest);
|
||||||
userMapper.setStoreInfoSave(storeRequest);
|
userMapper.setStoreInfoSave(storeRequest);
|
||||||
userMapper.setStoreSapCdSave(storeRequest);
|
userMapper.setStoreSapCdSave(storeRequest);
|
||||||
userMapper.setStoreNorthModuleSave(storeRequest);
|
userMapper.setStoreNorthModuleSave(storeRequest);
|
||||||
|
|
||||||
|
// 신규판매점 등록 이면서 판매점 가격이 등록이 안되어 있는 경우 추가
|
||||||
|
if (storeRequest.getPricePattern() != null
|
||||||
|
&& storeChk == 0
|
||||||
|
&& userMapper.getStoreUnitPriceChk(storeRequest) == 0) {
|
||||||
|
// 등록된 가격이 없는경우 정가 가격 등록
|
||||||
|
userMapper.setStoreUnitPrice(storeRequest);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<UserRequest> userList = storeSyncResponse.getUserList();
|
List<UserRequest> userList = storeSyncResponse.getUserList();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user