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.List;
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.CmmEnsRlaybsnmDTO;
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 int MAX_KT_SEND_CNT = 100;
@Value("${contract.kt.api.callback-url}")
private String CALLBACK_URL;
@Value("${contract.kt.api.dp-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 ICmmEnsCacheService cacheService;
@ -102,7 +105,7 @@ public class BizKtMmsService extends EgovAbstractServiceImpl implements IBizKtMm
//.docHash(Base64.getEncoder().encodeToString("db".getBytes(StandardCharsets.UTF_8)))
.docHash("db")
.mmsTitle("")
.url(CALLBACK_URL) //distInfoCrtYn - N이면 필수
.url(SignguCode.TRAFFIC.getCode().equals(reqDTO.getSignguCode())? DP_CALLBACK_URL : ME_CALLBACK_URL) //distInfoCrtYn - N이면 필수
.mmsBinary("")
.fileFmat("")
.mdn("")

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

Loading…
Cancel
Save