|
|
|
@ -5,13 +5,11 @@ import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import org.slf4j.MDC;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Propagation;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
import kr.xit.biz.common.ApiConstants;
|
|
|
|
|
import kr.xit.biz.common.ApiConstants.SignguCode;
|
|
|
|
|
import kr.xit.biz.common.ApiConstants.SndngSeCode;
|
|
|
|
|
import kr.xit.biz.ens.cmm.CmmEnsBizUtils;
|
|
|
|
|
import kr.xit.biz.ens.mapper.IEnsBatchMapper;
|
|
|
|
@ -40,13 +38,6 @@ import lombok.RequiredArgsConstructor;
|
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
|
@Service
|
|
|
|
|
public class EnsBatchMakeService extends AbstractService implements IEnsBatchMakeService {
|
|
|
|
|
// FIXME: KT callback url 확인 적용
|
|
|
|
|
@Value("${app.contract.kt.api.chuncheon-callback-url}")
|
|
|
|
|
private String CHUNCHEON_CALLBACK_URL;
|
|
|
|
|
// FIXME: KT callback url 확인 적용
|
|
|
|
|
@Value("${app.contract.kt.api.me-callback-url}")
|
|
|
|
|
private String ME_CALLBACK_URL;
|
|
|
|
|
|
|
|
|
|
private static final String SNDNG_PROCESS_STTUS = "sndngProcessSttus";
|
|
|
|
|
private static final String UNITY_SNDNG_MST_ID = "unitySndngMastrId";
|
|
|
|
|
|
|
|
|
@ -202,36 +193,10 @@ public class EnsBatchMakeService extends AbstractService implements IEnsBatchMak
|
|
|
|
|
case KAKAO -> mapper.insertKakaopay(dto);
|
|
|
|
|
case KAKAO_NEW -> mapper.insertKakaotalk(dto);
|
|
|
|
|
case KT_BC -> {
|
|
|
|
|
// FIXME: KT callback url 확인 적용
|
|
|
|
|
if(SignguCode.CHUNCHEON.getCode().equals(dto.getSignguCode())){
|
|
|
|
|
dto.setUrl(CHUNCHEON_CALLBACK_URL);
|
|
|
|
|
}
|
|
|
|
|
// FIXME: KT callback url 확인 적용
|
|
|
|
|
if(SignguCode.CHEONAN_ES.getCode().equals(dto.getSignguCode())){
|
|
|
|
|
dto.setUrl(ME_CALLBACK_URL);
|
|
|
|
|
}
|
|
|
|
|
if(SignguCode.CHEONAN_WN.getCode().equals(dto.getSignguCode())){
|
|
|
|
|
dto.setUrl(ME_CALLBACK_URL);
|
|
|
|
|
}
|
|
|
|
|
mapper.insertKtBcMastr(dto);
|
|
|
|
|
yield mapper.insertKtBcDetail(dto);
|
|
|
|
|
}
|
|
|
|
|
case KT_GIBIS -> {
|
|
|
|
|
// FIXME: KT callback url 확인 적용
|
|
|
|
|
// TB_ENS_KT_GBS
|
|
|
|
|
if(SignguCode.CHUNCHEON.getCode().equals(dto.getSignguCode())){
|
|
|
|
|
dto.setUrl(CHUNCHEON_CALLBACK_URL);
|
|
|
|
|
}
|
|
|
|
|
// FIXME: KT callback url 확인 적용
|
|
|
|
|
if(SignguCode.CHEONAN_ES.getCode().equals(dto.getSignguCode())){
|
|
|
|
|
dto.setUrl(ME_CALLBACK_URL);
|
|
|
|
|
}
|
|
|
|
|
if(SignguCode.CHEONAN_WN.getCode().equals(dto.getSignguCode())){
|
|
|
|
|
dto.setUrl(ME_CALLBACK_URL);
|
|
|
|
|
}
|
|
|
|
|
//mapper.insertKtBcMastr(dto);
|
|
|
|
|
//tb_ens_sndng_mastr
|
|
|
|
|
//TB_ENS_KT_GBS
|
|
|
|
|
yield mapper.insertKtGbsDetail(dto);
|
|
|
|
|
}
|
|
|
|
|
//default -> throw BizRuntimeException.create(String.format("정의 되지 않은 문서 중개자[%s] 입니다", sndngSeCode.getCode()));
|
|
|
|
|