|
|
|
@ -14,6 +14,7 @@ import javax.validation.Validation;
|
|
|
|
|
import javax.validation.Validator;
|
|
|
|
|
import kr.xit.batch.ens.task.cmm.TaskCmmUtils;
|
|
|
|
|
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.mapper.IEnsBatchMapper;
|
|
|
|
|
import kr.xit.biz.ens.model.EnsDTO;
|
|
|
|
@ -91,6 +92,10 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
|
|
|
|
|
|
|
|
|
|
@Value("${contract.kt.bulk-max-cnt}")
|
|
|
|
|
private int bulkKtMaxCnt;
|
|
|
|
|
@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 static final String SNDNG_PROCESS_STTUS = "sndngProcessSttus";
|
|
|
|
|
private static final String UNITY_SNDNG_MST_ID = "unitySndngMastrId";
|
|
|
|
@ -681,7 +686,15 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
|
|
|
|
|
case E_GREEN -> makeCnt = mapper.insertPostSndng(dto);
|
|
|
|
|
case SMS -> makeCnt = mapper.insertSmsSndng(dto);
|
|
|
|
|
// FIXME::처리 필요
|
|
|
|
|
case KT_BC -> makeCnt = mapper.insertKtBc(dto);
|
|
|
|
|
case KT_BC -> {
|
|
|
|
|
if(SignguCode.TRAFFIC.getCode().equals(dto.getSignguCode())){
|
|
|
|
|
dto.setUrl(DP_CALLBACK_URL);
|
|
|
|
|
}
|
|
|
|
|
if(SignguCode.FUNERAL.getCode().equals(dto.getSignguCode())){
|
|
|
|
|
dto.setUrl(ME_CALLBACK_URL);
|
|
|
|
|
}
|
|
|
|
|
makeCnt = mapper.insertKtBc(dto);
|
|
|
|
|
}
|
|
|
|
|
// FIXME::처리 필요
|
|
|
|
|
case PPLUS -> makeCnt = mapper.insertPplus(dto);
|
|
|
|
|
default -> throw BizRuntimeException.create(String.format("정의 되지 않은 문서 중개자[%s] 입니다", seCode));
|
|
|
|
|