无关风月
2 天以前 b2e3d6532dbbb3929e01a598dcef7eb07f39b826
ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/TaskUtil.java
@@ -325,15 +325,15 @@
                    tasks.add(task);
                }
                // 添加应生成任务数量
                TTemplateCount templateCount = new TTemplateCount();
                templateCount.setTemplateId(detail.getId());
                templateCount.setTaskCount(tLocationList.size()* cycle);
                templateCount.setUserId(sysUser.getUserId());
                templateCountService.save(templateCount);
            // 添加应生成任务数量
            TTemplateCount templateCount = new TTemplateCount();
            templateCount.setTemplateId(detail.getTemplateId());
            templateCount.setTaskCount(tLocationList.size()* cycle);
            templateCount.setUserId(sysUser.getUserId());
            templateCountService.save(templateCount);
                taskCleanService.saveBatch(tasks);
                taskCount = taskCount + tasks.size();
            taskCleanService.saveBatch(tasks);
            taskCount = taskCount + tasks.size();
            }
            template.setTaskCount(taskCount);
            templateService.updateById(template);