Compare commits

..

2 Commits

6 changed files with 12 additions and 7 deletions

View File

@@ -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() {
}

View File

@@ -43,7 +43,7 @@ public class BizLogResultScheduler {
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) {
List<TSendEntity> 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 {

View File

@@ -5,7 +5,7 @@ kri:
spring:
datasource:
#private 도메인
url: jdbc:mysql://db-md87m.vpc-cdb.ntruss.com:3306/notice_hub?characterEncoding=UTF-8
url: jdbc:mysql://db-md87m.vpc-cdb.ntruss.com:3306/notice_hub?characterEncoding=UTF-8&rewriteBatchedStatements=true
username: kri_notihub
password: notihub#51304
driver-class-name: com.mysql.cj.jdbc.Driver

View File

@@ -8,7 +8,7 @@ kri:
spring:
datasource:
#private 도메인
url: jdbc:mysql://db-md87m-kr.vpc-pub-cdb.ntruss.com:3306/notice_hub?characterEncoding=UTF-8
url: jdbc:mysql://db-md87m-kr.vpc-pub-cdb.ntruss.com:3306/notice_hub?characterEncoding=UTF-8&rewriteBatchedStatements=true
username: kri_notihub
password: notihub#51304
driver-class-name: com.mysql.cj.jdbc.Driver

View File

@@ -5,7 +5,7 @@ kri:
spring:
datasource:
#private 도메인
url: jdbc:mysql://db-md87m.vpc-cdb.ntruss.com:3306/notice_hub?characterEncoding=UTF-8
url: jdbc:mysql://db-md87m.vpc-cdb.ntruss.com:3306/notice_hub?characterEncoding=UTF-8&rewriteBatchedStatements=true
username: kri_notihub
password: notihub#51304
driver-class-name: com.mysql.cj.jdbc.Driver

View File

@@ -7,6 +7,12 @@ spring:
name: notihub-server
jpa:
properties:
hibernate:
jdbc:
batch_size: 1_000
order_inserts: true
order_updates: true
hibernate:
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl