完成中通百世对接

This commit is contained in:
2025-07-23 09:18:18 +08:00
parent b1914b7edc
commit fd85236a97
7 changed files with 314 additions and 4 deletions

View File

@@ -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);