Browse Source

音信通 信息请求结果回调获取任务

tags/24080901
niohe·erbao 1 year ago
parent
commit
8f99fc53ef
1 changed files with 29 additions and 0 deletions
  1. +29
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/sms/task/YxtPollingTask.java

+ 29
- 0
pmapi/src/main/java/com/ningdatech/pmapi/sms/task/YxtPollingTask.java View File

@@ -0,0 +1,29 @@
package com.ningdatech.pmapi.sms.task;

import com.ningdatech.yxt.client.YxtContext;
import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
* @author liuxinxin
* @date 2022/8/9 下午3:58
* 音信通定时检查电话结果
*/
@Component
@RequiredArgsConstructor
public class YxtPollingTask {


private final YxtContext yxtContext;

/**
* 校验音信通结果数据
* 每5分钟执行一次
*/
@Scheduled(cron = "0 */1 * * * ?")
// @Scheduled(cron = "${cron-expression.sms-msg-result-check-cron}")
public void smsMsgResultCheck() {
yxtContext.smsMsgResultCheck();
}
}

Loading…
Cancel
Save