skyouc
2025-07-09 875a183c5d5a12a4ba5c8d37559295ac1ce6cce3
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/timer/TaskLogTimer.java
@@ -123,6 +123,7 @@
                for (TaskDetl taskDetl : taskDetls) {
                    TaskDetlLog taskDetlLog = new TaskDetlLog();
                    taskDetlLog.sync(taskDetl);
                    taskDetlLog.setOrderId(taskDetl.getOrderId());
                    taskDetlLog.setId(null);
                    taskDetlLog.setTaskId(taskLog.getId());
                    if (!taskDetlLogService.save(taskDetlLog)) {
@@ -172,7 +173,7 @@
     * @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());
@@ -185,16 +186,7 @@
                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());