@@ -43,12 +43,10 @@ public class UmsService {
|
|||||||
|
|
||||||
private static final String SYS_DVCD = "API"; //시스템코드
|
private static final String SYS_DVCD = "API"; //시스템코드
|
||||||
private static final String BZWK_DVCD = "95"; //업무구분코드
|
private static final String BZWK_DVCD = "95"; //업무구분코드
|
||||||
private static final String BZWK_CD = "999"; //업무코드
|
|
||||||
private static final String BZWK_DCLS_DVCD = "9019"; //세부구분코드
|
private static final String BZWK_DCLS_DVCD = "9019"; //세부구분코드
|
||||||
private static final String SUB_BZWK_CD = "999"; //서브업무코드 TODO: 변경할것
|
private static final String TEAM_DVCD = "99"; //팀구분코드
|
||||||
private static final String TEAM_DVCD = "99"; //팀구분코드 TODO: 변경해야함
|
|
||||||
|
|
||||||
|
|
||||||
private final MonitoringPropertyService propertyService;
|
private final MonitoringPropertyService propertyService;
|
||||||
private final MessageRequestService messageRequestService;
|
private final MessageRequestService messageRequestService;
|
||||||
|
|
||||||
@@ -57,6 +55,16 @@ public class UmsService {
|
|||||||
this.messageRequestService = messageRequestService;
|
this.messageRequestService = messageRequestService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//업무코드 (모니터링 프로퍼티, 미설정 시 "999")
|
||||||
|
private String getBzwkCd() {
|
||||||
|
return propertyService.getPropertyValue("Monitoring", "djb.ums.email.bzwk_cd", "999");
|
||||||
|
}
|
||||||
|
|
||||||
|
//서브업무코드 (모니터링 프로퍼티, 미설정 시 "999")
|
||||||
|
private String getSubBzwkCd() {
|
||||||
|
return propertyService.getPropertyValue("Monitoring", "djb.ums.email.sub_bzwk_cd", "999");
|
||||||
|
}
|
||||||
|
|
||||||
public boolean send(MessageRequest messageRequest) throws Exception {
|
public boolean send(MessageRequest messageRequest) throws Exception {
|
||||||
if (messageRequest == null) {
|
if (messageRequest == null) {
|
||||||
throw new IllegalArgumentException("messageRequest is null");
|
throw new IllegalArgumentException("messageRequest is null");
|
||||||
@@ -303,9 +311,9 @@ public class UmsService {
|
|||||||
dataVO.setTmplt_mpng_rptt_info(""); // 탬플릿매핑반복정보
|
dataVO.setTmplt_mpng_rptt_info(""); // 탬플릿매핑반복정보
|
||||||
dataVO.setSnd_empno("APIM"); // 발신자ID(필수)
|
dataVO.setSnd_empno("APIM"); // 발신자ID(필수)
|
||||||
dataVO.setSnd_emp_dprm_cd("132"); // 발신자부서코드(필수)
|
dataVO.setSnd_emp_dprm_cd("132"); // 발신자부서코드(필수)
|
||||||
dataVO.setBzwk_cd(BZWK_CD); // 업무코드
|
dataVO.setBzwk_cd(getBzwkCd()); // 업무코드
|
||||||
dataVO.setSub_bzwk_cd(SUB_BZWK_CD); // 서브업무코드
|
dataVO.setSub_bzwk_cd(getSubBzwkCd()); // 서브업무코드
|
||||||
dataVO.setSys_dvcd(SYS_DVCD); // 시스템구분코드
|
dataVO.setSys_dvcd("85"); // 시스템구분코드
|
||||||
dataVO.setTx_dt(jsonData[0]); // 거래일자
|
dataVO.setTx_dt(jsonData[0]); // 거래일자
|
||||||
dataVO.setTx_tktm(jsonData[1].substring(0,6)); // 거래시간
|
dataVO.setTx_tktm(jsonData[1].substring(0,6)); // 거래시간
|
||||||
|
|
||||||
@@ -406,7 +414,7 @@ public class UmsService {
|
|||||||
String uuid = "";
|
String uuid = "";
|
||||||
|
|
||||||
if ("EMAIL".equals(messageType)) {
|
if ("EMAIL".equals(messageType)) {
|
||||||
uuid = SYS_DVCD + BZWK_CD + SUB_BZWK_CD + yyyymmdd + "O" + "E" ;
|
uuid = SYS_DVCD + getBzwkCd() + getSubBzwkCd() + yyyymmdd + "O" + "E" ;
|
||||||
|
|
||||||
long seq = messageRequestService.countEmailRequestsOnDate(LocalDate.now()) + 1;
|
long seq = messageRequestService.countEmailRequestsOnDate(LocalDate.now()) + 1;
|
||||||
uuid += String.format("%013d", seq);
|
uuid += String.format("%013d", seq);
|
||||||
|
|||||||
Reference in New Issue
Block a user