2월23일 16:00 완료콜부터 발송
This commit is contained in:
@@ -20,7 +20,7 @@ public class PcsiKakaoScheduler {
|
||||
|
||||
private final PcsiKakaoService pcsiKakaoService;
|
||||
|
||||
//@Scheduled(fixedDelay = 180 * 1_000) // 180초마다
|
||||
@Scheduled(fixedDelay = 180 * 1_000) // 180초마다
|
||||
public void catiSucessPanelKakaoSend() {
|
||||
|
||||
// new_cati의 KAKAO_PCSI_LIST 테이블에서 kakao 알림톡 보낼 프로젝트를 조회
|
||||
@@ -62,7 +62,7 @@ public class PcsiKakaoScheduler {
|
||||
.sendTime(LocalDateTime.now()) // 발송기준 시간
|
||||
.destPhone(t.getDestPhone()) // 수신번호
|
||||
.destName(t.getDestName()) // 수신자명
|
||||
.sendPhone("0261965050") // 발신번호
|
||||
.sendPhone("0234155142") // 발신번호
|
||||
.sendName("코리아리서치") // 발신자명
|
||||
.nationCode("82") // 한국
|
||||
.senderKey(prj.getSenderProfileKey()) // 카카오 senderKey
|
||||
|
||||
@@ -9,4 +9,9 @@ app:
|
||||
url: jdbc:mysql://db-md87m.vpc-cdb.ntruss.com:3306/pcsi_send_notice?characterEncoding=UTF-8
|
||||
username: kri_pcsi
|
||||
password: kric@5100
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
|
||||
mybatis:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
@@ -8,7 +8,7 @@ spring:
|
||||
|
||||
profiles:
|
||||
# 아무 설정 없을 때 기본으로 쓸 프로파일
|
||||
default: local
|
||||
default: prod
|
||||
|
||||
logging:
|
||||
file:
|
||||
|
||||
@@ -12,15 +12,17 @@
|
||||
</select>
|
||||
|
||||
<select id="selectKakaoSendList_test" resultType="com.kri.pcsi.send_notice.entity.cati.KakaoSendListEntity">
|
||||
SELECT '2512030_01' as prjCode, '01095441461' AS destPhone, '최남식' as destName
|
||||
SELECT '2512030_01' as prjCode, '01080147744' AS destPhone, '송유근' as destName
|
||||
</select>
|
||||
|
||||
<select id="selectKakaoSendList" resultType="com.kri.pcsi.send_notice.entity.cati.KakaoSendListEntity">
|
||||
SELECT DISTINCT t1.prj_code AS prjCode, COALESCE(NULLIF(t1.tel_etc1, ''), t1.tel_etc8) AS destName, t2.s_oktelno+'1' as destPhone
|
||||
SELECT DISTINCT t1.prj_code AS prjCode, COALESCE(NULLIF(t1.tel_etc1, ''), t1.tel_etc8) AS destName, t2.s_oktelno as destPhone
|
||||
FROM new_cati.dbo.sample_${prjCode} t1 INNER JOIN new_cati.dbo.sheet1 t2
|
||||
ON t1.prj_code = t2.prj_code
|
||||
AND t1.tel_stat = 1
|
||||
AND t1.tel_local+t1.tel_kuk+t1.tel_no = t2.s_tlocal+t2.s_tkuk+t2.s_tno
|
||||
AND t1.tel_date = '2026-02-23'
|
||||
AND CONVERT(time, t1.tel_e_time) >= '16:00:00'
|
||||
AND CONCAT(t1.tel_local,t1.tel_kuk,t1.tel_no) = CONCAT(t2.s_tlocal,t2.s_tkuk,t2.s_tno)
|
||||
AND REPLACE(REPLACE(t2.s_oktelno, '-', ''), ' ', '') LIKE '01[016789]%'
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user