fix: 启用物料信息发起OA请求功能,后续OA请求的状态同步由主物料服务负责
This commit is contained in:
parent
354c566383
commit
443153bacd
|
|
@ -36,6 +36,7 @@ import javax.annotation.Resource;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
import java.util.concurrent.CompletableFuture;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
|
|
@ -210,8 +211,7 @@ public class MaterialService {
|
||||||
materialMainService.saveOrUpdateBatch(resultList);
|
materialMainService.saveOrUpdateBatch(resultList);
|
||||||
// initCategoryInfo(syncOaEnts);
|
// initCategoryInfo(syncOaEnts);
|
||||||
//同步OA
|
//同步OA
|
||||||
// sysnToOa(syncOaEnts, userInfo);
|
CompletableFuture.runAsync(() -> sysnToOa(syncOaEnts, userInfo), syncOAThreadPool);
|
||||||
// CompletableFuture.runAsync(() -> sysnToOa(syncOaEnts),syncOAThreadPool);
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue