| | |
| | | * @description: 出库任务完成
|
| | | * @version 1.0
|
| | | */
|
| | | @Scheduled(cron = "0/10 * * * * ? ")
|
| | | @Scheduled(cron = "0/35 * * * * ? ")
|
| | | @Transactional(rollbackFor = Exception.class)
|
| | | public void outExecute() {
|
| | | InterceptorIgnoreHelper.handle(IgnoreStrategy.builder().tenantLine(true).build());
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | // Dict dict = dictService.getOne(new LambdaQueryWrapper<Dict>().eq(Dict::getFlag, "taskLogDiffDays").eq(Dict::getStatus, 1));
|
| | | // if (dict == null) {
|
| | | // return;
|
| | | // }
|
| | | for (Task task : list) {
|
| | | // int diff = DateUtils.diff(task.getCreateTime(), new Date());
|
| | | // int taskLogDiffDays = Integer.parseInt(dict.getValue());
|
| | | // if (diff < taskLogDiffDays) {
|
| | | // continue;
|
| | | // }
|
| | | Long hostId = task.getHostId();
|
| | | //保存任务明细历史档
|
| | | List<TaskDetl> taskDetls = taskDetlService.getTaskDetlByTaskId(task.getId());
|