2
0

feat: add cdr schedule task

This commit is contained in:
caiyuchao
2024-12-10 11:07:17 +08:00
parent 95d4b02aad
commit b1848e3ab3
17 changed files with 277 additions and 30 deletions

View File

@@ -70,6 +70,11 @@
<groupId>org.wfc</groupId>
<artifactId>wfc-common-swagger</artifactId>
</dependency>
<dependency>
<groupId>org.wfc</groupId>
<artifactId>wfc-api-user</artifactId>
</dependency>
</dependencies>

View File

@@ -0,0 +1,25 @@
package org.wfc.job.task;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.wfc.user.api.RemoteUUserService;
/**
* @description: 话单信息任务
* @author: cyc
* @since: 2024-12-10
*/
@Slf4j
@Component("cdrInfoTask")
public class CdrInfoTask {
@Autowired
private RemoteUUserService remoteUUserService;
public void addCdrInfo() {
log.info("开始执行话单信息任务");
remoteUUserService.addCdrInfoByOmadaApi();
log.info("话单信息任务执行成功");
}
}