This commit is contained in:
wangliwen 2022-07-20 15:46:28 +08:00
parent 46a30be29a
commit c3658aceb0
1 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,7 @@ public class AbilityCenterControllerV2 {
final Optional<SysDeptDTO> deptDTO = Optional.ofNullable(sysDeptService.getByName(bigDateDeptName)); final Optional<SysDeptDTO> deptDTO = Optional.ofNullable(sysDeptService.getByName(bigDateDeptName));
final UserDetail user = SecurityUser.getUser(); final UserDetail user = SecurityUser.getUser();
CompletableFuture.runAsync(() -> { CompletableFuture.runAsync(() -> {
logger.info("处理能力申请!");
deal(abilityBatchApplicationDTO, deptDTO, applyFlag, user); deal(abilityBatchApplicationDTO, deptDTO, applyFlag, user);
}, executor); }, executor);
return new Result().ok(LocalDateTime.now().toString()); return new Result().ok(LocalDateTime.now().toString());
@ -132,6 +133,7 @@ public class AbilityCenterControllerV2 {
final Optional<SysDeptDTO> deptDTO = Optional.ofNullable(sysDeptService.getByName(bigDateDeptName)); final Optional<SysDeptDTO> deptDTO = Optional.ofNullable(sysDeptService.getByName(bigDateDeptName));
final UserDetail user = SecurityUser.getUser(); final UserDetail user = SecurityUser.getUser();
CompletableFuture.runAsync(() -> { CompletableFuture.runAsync(() -> {
logger.info("处理能力申请!");
deal(abilityBatchApplicationDTO, deptDTO, applyFlag, user); deal(abilityBatchApplicationDTO, deptDTO, applyFlag, user);
}, executor); }, executor);
return new Result().ok(LocalDateTime.now().toString()); return new Result().ok(LocalDateTime.now().toString());