fix: 모바일 페이지 redirect_url 정보 set 변경

-> prop에서 tb_ens_tmplat_manage 테이블의 reditrect_url로 set
main
Jonguk. Lim 3 months ago
parent 7a5bf146ee
commit a16a9accb4

@ -5,13 +5,11 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import org.slf4j.MDC; import org.slf4j.MDC;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import kr.xit.biz.common.ApiConstants; import kr.xit.biz.common.ApiConstants;
import kr.xit.biz.common.ApiConstants.SignguCode;
import kr.xit.biz.common.ApiConstants.SndngSeCode; import kr.xit.biz.common.ApiConstants.SndngSeCode;
import kr.xit.biz.ens.cmm.CmmEnsBizUtils; import kr.xit.biz.ens.cmm.CmmEnsBizUtils;
import kr.xit.biz.ens.mapper.IEnsBatchMapper; import kr.xit.biz.ens.mapper.IEnsBatchMapper;
@ -40,13 +38,6 @@ import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor @RequiredArgsConstructor
@Service @Service
public class EnsBatchMakeService extends AbstractService implements IEnsBatchMakeService { 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 SNDNG_PROCESS_STTUS = "sndngProcessSttus";
private static final String UNITY_SNDNG_MST_ID = "unitySndngMastrId"; 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 -> mapper.insertKakaopay(dto);
case KAKAO_NEW -> mapper.insertKakaotalk(dto); case KAKAO_NEW -> mapper.insertKakaotalk(dto);
case KT_BC -> { 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); mapper.insertKtBcMastr(dto);
yield mapper.insertKtBcDetail(dto); yield mapper.insertKtBcDetail(dto);
} }
case KT_GIBIS -> { 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); yield mapper.insertKtGbsDetail(dto);
} }
//default -> throw BizRuntimeException.create(String.format("정의 되지 않은 문서 중개자[%s] 입니다", sndngSeCode.getCode())); //default -> throw BizRuntimeException.create(String.format("정의 되지 않은 문서 중개자[%s] 입니다", sndngSeCode.getCode()));

@ -454,7 +454,7 @@
, tetm.tmplat_cn || CHR(13) || CHR(10) || '- 열람기간 : ' || substr(teusm.clos_dt, 1, 4) || '년 ' || substr(teusm.clos_dt, 5, 2) || '월 ' || substr(teusm.clos_dt, 7, 2) || '일까지'|| CHR(13) || CHR(10) || '- 문의처 : ' || tetm.cstmr_cnter_tlphon_no || CHR(13) || CHR(10) || CHR(13) || CHR(10) ||'{#INFO_CFRM_STR}'|| CHR(13) || CHR(10) ||'{#RCVE_RF_STR}' , tetm.tmplat_cn || CHR(13) || CHR(10) || '- 열람기간 : ' || substr(teusm.clos_dt, 1, 4) || '년 ' || substr(teusm.clos_dt, 5, 2) || '월 ' || substr(teusm.clos_dt, 7, 2) || '일까지'|| CHR(13) || CHR(10) || '- 문의처 : ' || tetm.cstmr_cnter_tlphon_no || CHR(13) || CHR(10) || CHR(13) || CHR(10) ||'{#INFO_CFRM_STR}'|| CHR(13) || CHR(10) ||'{#RCVE_RF_STR}'
, tetm.tmplat_sj , tetm.tmplat_sj
, tetm.tmplat_cn || CHR(13) || CHR(10) || '- 열람기간 : ' || substr(teusm.clos_dt, 1, 4) || '년 ' || substr(teusm.clos_dt, 5, 2) || '월 ' || substr(teusm.clos_dt, 7, 2) || '일까지'|| CHR(13) || CHR(10) || '- 문의처 : ' || tetm.cstmr_cnter_tlphon_no || CHR(13) || CHR(10) , tetm.tmplat_cn || CHR(13) || CHR(10) || '- 열람기간 : ' || substr(teusm.clos_dt, 1, 4) || '년 ' || substr(teusm.clos_dt, 5, 2) || '월 ' || substr(teusm.clos_dt, 7, 2) || '일까지'|| CHR(13) || CHR(10) || '- 문의처 : ' || tetm.cstmr_cnter_tlphon_no || CHR(13) || CHR(10)
, #{url} , tetm.redirect_url
, sha256.encrypt(teusd.unity_sndng_detail_id) , sha256.encrypt(teusd.unity_sndng_detail_id)
, '' , ''
, 'N' , 'N'
@ -530,7 +530,7 @@
ELSE tetm.tmplat_cn END ELSE tetm.tmplat_cn END
, tetm.tmplat_sj , tetm.tmplat_sj
, '' , ''
, #{url} , tetm.redirect_url
, sha256.encrypt(teusd.unity_sndng_detail_id) , sha256.encrypt(teusd.unity_sndng_detail_id)
, '' , ''
, sysdate , sysdate

Loading…
Cancel
Save