feat: KT BC, Post Plus feat

dev
gitea-관리자 1 year ago
parent c04c3c4920
commit ed9b43e67c

@ -3,6 +3,7 @@ package kr.xit.biz.kt.service;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import kr.xit.biz.cmm.service.ICmmEnsCacheService; import kr.xit.biz.cmm.service.ICmmEnsCacheService;
import kr.xit.biz.common.ApiConstants.SignguCode;
import kr.xit.biz.ens.model.cmm.CmmEnsRequestDTO; import kr.xit.biz.ens.model.cmm.CmmEnsRequestDTO;
import kr.xit.biz.ens.model.cmm.CmmEnsRlaybsnmDTO; import kr.xit.biz.ens.model.cmm.CmmEnsRlaybsnmDTO;
import kr.xit.biz.ens.model.kt.KtCommonDTO.KtCommonResponse; import kr.xit.biz.ens.model.kt.KtCommonDTO.KtCommonResponse;
@ -45,8 +46,10 @@ public class BizKtMmsService extends EgovAbstractServiceImpl implements IBizKtMm
private static final String profile = System.getProperty("spring.profiles.active"); private static final String profile = System.getProperty("spring.profiles.active");
private static final int MAX_KT_SEND_CNT = 100; private static final int MAX_KT_SEND_CNT = 100;
@Value("${contract.kt.api.callback-url}") @Value("${contract.kt.api.dp-callback-url}")
private String CALLBACK_URL; private String DP_CALLBACK_URL;
@Value("${contract.kt.api.me-callback-url}")
private String ME_CALLBACK_URL;
private final IKtMmsService ktMmsService; private final IKtMmsService ktMmsService;
private final ICmmEnsCacheService cacheService; private final ICmmEnsCacheService cacheService;
@ -102,7 +105,7 @@ public class BizKtMmsService extends EgovAbstractServiceImpl implements IBizKtMm
//.docHash(Base64.getEncoder().encodeToString("db".getBytes(StandardCharsets.UTF_8))) //.docHash(Base64.getEncoder().encodeToString("db".getBytes(StandardCharsets.UTF_8)))
.docHash("db") .docHash("db")
.mmsTitle("") .mmsTitle("")
.url(CALLBACK_URL) //distInfoCrtYn - N이면 필수 .url(SignguCode.TRAFFIC.getCode().equals(reqDTO.getSignguCode())? DP_CALLBACK_URL : ME_CALLBACK_URL) //distInfoCrtYn - N이면 필수
.mmsBinary("") .mmsBinary("")
.fileFmat("") .fileFmat("")
.mdn("") .mdn("")

@ -243,18 +243,10 @@ public class BizNiceCiService extends EgovAbstractServiceImpl implements IBizNic
} }
switch(wrkDiv){ switch(wrkDiv){
case TOKEN: case TOKEN -> niceCiMapper.updateNiceCrtfToken(niceDTO);
niceCiMapper.updateNiceCrtfToken(niceDTO); case PUBLIC_KEY -> niceCiMapper.updateNiceCrtfPublickey(niceDTO);
break; case SYM_KEY -> niceCiMapper.updateNiceCrtfSymkey(niceDTO);
case PUBLIC_KEY: //default -> ;
niceCiMapper.updateNiceCrtfPublickey(niceDTO);
break;
case SYM_KEY:
niceCiMapper.updateNiceCrtfSymkey(niceDTO);
break;
default:
break;
} }
// 공개키 정보 캐쉬 삭제 // 공개키 정보 캐쉬 삭제

Loading…
Cancel
Save