Compare commits
2 Commits
733cfbcd8d
...
f163994bae
| Author | SHA1 | Date | |
|---|---|---|---|
| f163994bae | |||
| 4e502c428c |
@ -4,6 +4,7 @@ import com.interplug.qcast.biz.user.dto.StoreRequest;
|
|||||||
import com.interplug.qcast.biz.user.dto.StoreSyncResquest;
|
import com.interplug.qcast.biz.user.dto.StoreSyncResquest;
|
||||||
import com.interplug.qcast.biz.user.dto.UserRequest;
|
import com.interplug.qcast.biz.user.dto.UserRequest;
|
||||||
import com.interplug.qcast.biz.user.dto.UserResponse;
|
import com.interplug.qcast.biz.user.dto.UserResponse;
|
||||||
|
import io.micrometer.common.util.StringUtils;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -41,6 +42,14 @@ public class UserController {
|
|||||||
public UserResponse setStoreSave(@RequestBody StoreRequest storeReq) throws Exception {
|
public UserResponse setStoreSave(@RequestBody StoreRequest storeReq) throws Exception {
|
||||||
UserResponse userResponse = new UserResponse();
|
UserResponse userResponse = new UserResponse();
|
||||||
|
|
||||||
|
// 판매점의 우편번호 등록시 하이픈이 없다면 셋제짜리 이후에 하이픈 조합으로 등록처리(2026.04.30 이병곤 과장 추가 요청)
|
||||||
|
String zipNo = storeReq.getZipNo();
|
||||||
|
if (!StringUtils.isEmpty(zipNo)
|
||||||
|
&& !zipNo.contains("-")
|
||||||
|
&& zipNo.length() >= 4
|
||||||
|
&& zipNo.length() <= 9) {
|
||||||
|
storeReq.setZipNo(zipNo.substring(0, 3) + "-" + zipNo.substring(3));
|
||||||
|
}
|
||||||
int resultCnt = userService.setStoreSave(storeReq);
|
int resultCnt = userService.setStoreSave(storeReq);
|
||||||
|
|
||||||
if (resultCnt > 0) userResponse.setCode("200");
|
if (resultCnt > 0) userResponse.setCode("200");
|
||||||
|
|||||||
@ -95,7 +95,7 @@ public class UserService {
|
|||||||
|
|
||||||
// 판매점의 우편번호 등록시 하이픈이 없다면 셋제짜리 이후에 하이픈 조합으로 등록처리(2026.04.30 이병곤 과장 추가 요청)
|
// 판매점의 우편번호 등록시 하이픈이 없다면 셋제짜리 이후에 하이픈 조합으로 등록처리(2026.04.30 이병곤 과장 추가 요청)
|
||||||
String zipNo = storeRequest.getZipNo();
|
String zipNo = storeRequest.getZipNo();
|
||||||
if (!StringUtils.isEmpty(zipNo) && !zipNo.contains("-") && zipNo.length() >= 4) {
|
if (!StringUtils.isEmpty(zipNo) && !zipNo.contains("-") && zipNo.length() >= 4 && zipNo.length() <= 9) {
|
||||||
storeRequest.setZipNo(zipNo.substring(0, 3) + "-" + zipNo.substring(3));
|
storeRequest.setZipNo(zipNo.substring(0, 3) + "-" + zipNo.substring(3));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,6 +192,12 @@ public class UserService {
|
|||||||
? ""
|
? ""
|
||||||
: storeRequest.getSaleStoreLevel();
|
: storeRequest.getSaleStoreLevel();
|
||||||
|
|
||||||
|
// 판매점의 우편번호 등록시 하이픈이 없다면 셋제짜리 이후에 하이픈 조합으로 등록처리(2026.04.30 이병곤 과장 추가 요청)
|
||||||
|
String zipNo = storeRequest.getZipNo();
|
||||||
|
if (!StringUtils.isEmpty(zipNo) && !zipNo.contains("-") && zipNo.length() >= 4 && zipNo.length() <= 9) {
|
||||||
|
storeRequest.setZipNo(zipNo.substring(0, 3) + "-" + zipNo.substring(3));
|
||||||
|
}
|
||||||
|
|
||||||
userMapper.setStoreSave(storeRequest);
|
userMapper.setStoreSave(storeRequest);
|
||||||
userMapper.setStoreInfoSave(storeRequest);
|
userMapper.setStoreInfoSave(storeRequest);
|
||||||
userMapper.setStoreSapCdSave(storeRequest);
|
userMapper.setStoreSapCdSave(storeRequest);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user