完成中通百世对接
This commit is contained in:
@@ -4,6 +4,7 @@ import com.ruoyi.oa.service.impl.OaExpressServiceImpl;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
import javax.annotation.Resource;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@@ -14,7 +15,7 @@ public class OaExpressRefreshTask {
|
||||
|
||||
// 每20分钟执行一次
|
||||
@Scheduled(cron = "0 0/20 * * * ?")
|
||||
public void refreshExpress() {
|
||||
public void refreshExpress() throws IOException {
|
||||
List<Long> expressIds = oaExpressService.getAllSfExpressIdsToRefresh();
|
||||
if (expressIds != null && !expressIds.isEmpty()) {
|
||||
oaExpressService.getRefreshExpress(expressIds);
|
||||
|
||||
Reference in New Issue
Block a user