260306_01_ENH: 비즈 뿌리오 스케쥴러에 카카오 알림톡 추가
This commit is contained in:
@@ -29,7 +29,6 @@ public final class NotihubConst {
|
|||||||
public static final short LMS_MMS_SUCCESS = 6600;
|
public static final short LMS_MMS_SUCCESS = 6600;
|
||||||
public static final short KKO_AT_STANDBY = 7900;
|
public static final short KKO_AT_STANDBY = 7900;
|
||||||
public static final short KKO_AT_SUCCESS = 7000;
|
public static final short KKO_AT_SUCCESS = 7000;
|
||||||
public static final short KKO_AT_NOT_RESULT = 7999;
|
|
||||||
|
|
||||||
private NotihubConst() {
|
private NotihubConst() {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class BizLogResultScheduler {
|
|||||||
|
|
||||||
TimeWindow window = buildWindow(1L); // hours는 추후 파라미터화
|
TimeWindow window = buildWindow(1L); // hours는 추후 파라미터화
|
||||||
|
|
||||||
List<Short> sendTyList = List.of(SendType.SMS.getCode(), SendType.LMS_MMS.getCode());
|
List<Short> sendTyList = List.of(SendType.SMS.getCode(), SendType.LMS_MMS.getCode(), SendType.KKO_AT.getCode());
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
List<TSendEntity> batch = fetchRefreshTargets(sendTyList, window, 1000);
|
List<TSendEntity> batch = fetchRefreshTargets(sendTyList, window, 1000);
|
||||||
@@ -138,7 +138,7 @@ public class BizLogResultScheduler {
|
|||||||
}
|
}
|
||||||
Short resultCode = s.getResultCode();
|
Short resultCode = s.getResultCode();
|
||||||
return resultCode != null
|
return resultCode != null
|
||||||
&& (resultCode == NotihubConst.SMS_STANDBY || resultCode == NotihubConst.LMS_MMS_STANDBY);
|
&& (resultCode == NotihubConst.SMS_STANDBY || resultCode == NotihubConst.LMS_MMS_STANDBY || resultCode == NotihubConst.KKO_AT_STANDBY);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -248,7 +248,7 @@ public class BizLogResultScheduler {
|
|||||||
|
|
||||||
short callStatus = safeParseShort(log.getCallStatus(), NotihubConst.SMS_NOT_RESULT);
|
short callStatus = safeParseShort(log.getCallStatus(), NotihubConst.SMS_NOT_RESULT);
|
||||||
|
|
||||||
if (callStatus == NotihubConst.SMS_SUCCESS || callStatus == NotihubConst.LMS_MMS_SUCCESS) {
|
if (callStatus == NotihubConst.SMS_SUCCESS || callStatus == NotihubConst.LMS_MMS_SUCCESS || callStatus == NotihubConst.KKO_AT_SUCCESS) {
|
||||||
s.setSendStatus(SendStatusType.SUCCESS.getCode());
|
s.setSendStatus(SendStatusType.SUCCESS.getCode());
|
||||||
s.setResultCode(callStatus);
|
s.setResultCode(callStatus);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user