Merge pull request 'dev' (#481) from dev into prd-deploy

Reviewed-on: #481
This commit is contained in:
ysCha 2026-04-30 16:21:01 +09:00
commit ab5213f365
2 changed files with 21 additions and 0 deletions

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

@ -93,6 +93,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);
@ -186,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);