diff --git a/src/main/java/com/kri/notihub/server/common/consts/NotihubConst.java b/src/main/java/com/kri/notihub/server/common/consts/NotihubConst.java index 119f150..8e2321a 100644 --- a/src/main/java/com/kri/notihub/server/common/consts/NotihubConst.java +++ b/src/main/java/com/kri/notihub/server/common/consts/NotihubConst.java @@ -29,7 +29,6 @@ public final class NotihubConst { public static final short LMS_MMS_SUCCESS = 6600; public static final short KKO_AT_STANDBY = 7900; public static final short KKO_AT_SUCCESS = 7000; - public static final short KKO_AT_NOT_RESULT = 7999; private NotihubConst() { } diff --git a/src/main/java/com/kri/notihub/server/scheduler/BizLogResultScheduler.java b/src/main/java/com/kri/notihub/server/scheduler/BizLogResultScheduler.java index 33d9df2..1613b72 100644 --- a/src/main/java/com/kri/notihub/server/scheduler/BizLogResultScheduler.java +++ b/src/main/java/com/kri/notihub/server/scheduler/BizLogResultScheduler.java @@ -43,7 +43,7 @@ public class BizLogResultScheduler { TimeWindow window = buildWindow(1L); // hours는 추후 파라미터화 - List sendTyList = List.of(SendType.SMS.getCode(), SendType.LMS_MMS.getCode()); + List sendTyList = List.of(SendType.SMS.getCode(), SendType.LMS_MMS.getCode(), SendType.KKO_AT.getCode()); while (true) { List batch = fetchRefreshTargets(sendTyList, window, 1000); @@ -138,7 +138,7 @@ public class BizLogResultScheduler { } Short resultCode = s.getResultCode(); 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); - 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.setResultCode(callStatus); } else {