fix: 启用物料信息发起OA请求功能,后续OA请求的状态同步由主物料服务负责

This commit is contained in:
曹鹏飞 2024-06-21 14:17:11 +08:00
parent 354c566383
commit 443153bacd
1 changed files with 2 additions and 2 deletions

View File

@ -36,6 +36,7 @@ import javax.annotation.Resource;
import java.io.IOException;
import java.time.LocalDateTime;
import java.util.*;
import java.util.concurrent.CompletableFuture;
import java.util.stream.Collectors;
@Service
@ -210,8 +211,7 @@ public class MaterialService {
materialMainService.saveOrUpdateBatch(resultList);
// initCategoryInfo(syncOaEnts);
//同步OA
// sysnToOa(syncOaEnts, userInfo);
// CompletableFuture.runAsync(() -> sysnToOa(syncOaEnts),syncOAThreadPool);
CompletableFuture.runAsync(() -> sysnToOa(syncOaEnts, userInfo), syncOAThreadPool);
return result;
}