|
|
@ -77,8 +77,6 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
|
|
|
|
@Value("${contract.kt.api.bulkstatus}")
|
|
|
|
@Value("${contract.kt.api.bulkstatus}")
|
|
|
|
private String apiKtBcBulkStatus;
|
|
|
|
private String apiKtBcBulkStatus;
|
|
|
|
|
|
|
|
|
|
|
|
private static final String profile = System.getProperty("spring.profiles.active");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final IEnsBatchRequireNewService requireNewService;
|
|
|
|
private final IEnsBatchRequireNewService requireNewService;
|
|
|
|
private final ApiWebClientUtil apiWebClient;
|
|
|
|
private final ApiWebClientUtil apiWebClient;
|
|
|
|
private final IEnsBatchMapper mapper;
|
|
|
|
private final IEnsBatchMapper mapper;
|
|
|
@ -138,7 +136,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
|
|
|
|
for (EnsDTO.SndngMssageParam dto : list) {
|
|
|
|
for (EnsDTO.SndngMssageParam dto : list) {
|
|
|
|
dto.setSignguCode(reqDTO.getSignguCode());
|
|
|
|
dto.setSignguCode(reqDTO.getSignguCode());
|
|
|
|
dto.setFfnlgCode(reqDTO.getFfnlgCode());
|
|
|
|
dto.setFfnlgCode(reqDTO.getFfnlgCode());
|
|
|
|
dto.setProfile(profile);
|
|
|
|
dto.setProfile(ApiConstants.PROFILE);
|
|
|
|
final List<String> mstIdList = new ArrayList<>();
|
|
|
|
final List<String> mstIdList = new ArrayList<>();
|
|
|
|
String mstId = "";
|
|
|
|
String mstId = "";
|
|
|
|
if (!Objects.equals(mstId, dto.getUnitySndngMastrId())) {
|
|
|
|
if (!Objects.equals(mstId, dto.getUnitySndngMastrId())) {
|
|
|
@ -226,7 +224,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
|
|
|
|
|
|
|
|
|
|
|
|
dto.setSignguCode(reqDTO.getSignguCode());
|
|
|
|
dto.setSignguCode(reqDTO.getSignguCode());
|
|
|
|
dto.setFfnlgCode(reqDTO.getFfnlgCode());
|
|
|
|
dto.setFfnlgCode(reqDTO.getFfnlgCode());
|
|
|
|
dto.setProfile(profile);
|
|
|
|
dto.setProfile(ApiConstants.PROFILE);
|
|
|
|
dto.setSndngProcessSttus(reqDTO.getSndngProcessSttus());
|
|
|
|
dto.setSndngProcessSttus(reqDTO.getSndngProcessSttus());
|
|
|
|
dto.setNewSndngProcessSttus(ApiConstants.SndngProcessStatus.MAKE_OK.getCode());
|
|
|
|
dto.setNewSndngProcessSttus(ApiConstants.SndngProcessStatus.MAKE_OK.getCode());
|
|
|
|
//FIXME: try1,try2,tr3이 있는 경우 try1 이전에 try2,3이 실행될 수 있는 경우???
|
|
|
|
//FIXME: try1,try2,tr3이 있는 경우 try1 이전에 try2,3이 실행될 수 있는 경우???
|
|
|
@ -242,7 +240,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
|
|
|
|
|
|
|
|
|
|
|
|
dto.setSignguCode(reqDTO.getSignguCode());
|
|
|
|
dto.setSignguCode(reqDTO.getSignguCode());
|
|
|
|
dto.setFfnlgCode(reqDTO.getFfnlgCode());
|
|
|
|
dto.setFfnlgCode(reqDTO.getFfnlgCode());
|
|
|
|
dto.setProfile(profile);
|
|
|
|
dto.setProfile(ApiConstants.PROFILE);
|
|
|
|
|
|
|
|
|
|
|
|
//try2 발송 대상이 있는지 확인
|
|
|
|
//try2 발송 대상이 있는지 확인
|
|
|
|
final int sendCnt = mapper.selectSendOkTgts(dto);
|
|
|
|
final int sendCnt = mapper.selectSendOkTgts(dto);
|
|
|
@ -297,7 +295,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
|
|
|
|
for (EnsDTO.SndngMssageParam tgtDTO : tgtList) {
|
|
|
|
for (EnsDTO.SndngMssageParam tgtDTO : tgtList) {
|
|
|
|
tgtDTO.setSignguCode(reqDTO.getSignguCode());
|
|
|
|
tgtDTO.setSignguCode(reqDTO.getSignguCode());
|
|
|
|
tgtDTO.setFfnlgCode(reqDTO.getFfnlgCode());
|
|
|
|
tgtDTO.setFfnlgCode(reqDTO.getFfnlgCode());
|
|
|
|
tgtDTO.setProfile(profile);
|
|
|
|
tgtDTO.setProfile(ApiConstants.PROFILE);
|
|
|
|
|
|
|
|
|
|
|
|
MDC.put(UNITY_SNDNG_MST_ID, tgtDTO.getUnitySndngMastrId());
|
|
|
|
MDC.put(UNITY_SNDNG_MST_ID, tgtDTO.getUnitySndngMastrId());
|
|
|
|
MDC.put("sndngMastrId", tgtDTO.getSndngMastrId());
|
|
|
|
MDC.put("sndngMastrId", tgtDTO.getSndngMastrId());
|
|
|
|