Compare commits
No commits in common. "9f89a6c75e77da8cbf2d24f15a4c8e22af22ac38" and "913a4df6855c370db5b3bdf7133292b1274a826e" have entirely different histories.
9f89a6c75e
...
913a4df685
@ -27,20 +27,10 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,19 +151,10 @@ 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