dev #481

Merged
ysCha merged 4 commits from dev into prd-deploy 2026-04-30 16:21:02 +09:00
2 changed files with 16 additions and 1 deletions
Showing only changes of commit f163994bae - Show all commits

View File

@ -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.UserRequest;
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.tags.Tag;
import java.util.List;
@ -41,6 +42,14 @@ public class UserController {
public UserResponse setStoreSave(@RequestBody StoreRequest storeReq) throws Exception {
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);
if (resultCnt > 0) userResponse.setCode("200");

View File

@ -95,7 +95,7 @@ public class UserService {
// 판매점의 우편번호 등록시 하이픈이 없다면 셋제짜리 이후에 하이픈 조합으로 등록처리(2026.04.30 이병곤 과장 추가 요청)
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));
}
@ -192,6 +192,12 @@ public class UserService {
? ""
: 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.setStoreInfoSave(storeRequest);
userMapper.setStoreSapCdSave(storeRequest);