xuhy
1 天以前 fb91542ce0668b0281c986f76d45498774530ba7
bug修改
1个文件已修改
8 ■■■■ 已修改文件
ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/TaskUtil.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/TaskUtil.java
@@ -64,7 +64,7 @@
    // 每一个小时执行一次
//    @Scheduled(cron = "0 0 0 * * ?")
    @Scheduled(fixedRate = 1500000000)
//    @Scheduled(fixedRate = 1500000000)
    public void dayOfCreateInspection() {
        try {
@@ -328,7 +328,11 @@
            // 添加应生成任务数量
            TTemplateCount templateCount = new TTemplateCount();
            templateCount.setTemplateId(detail.getTemplateId());
            templateCount.setTaskCount(tLocationList.size()* cycle);
            // 查询所有的保洁员下面的点位
            List<String> cleanIds = cleaners.stream().map(TCleaner::getId).collect(Collectors.toList());
            List<TLocation> tLocations = locationService.list(Wrappers.lambdaQuery(TLocation.class)
                    .in(TLocation::getLocationCleaner, cleanIds));
            templateCount.setTaskCount(tLocations.size());
            templateCount.setUserId(sysUser.getUserId());
            templateCountService.save(templateCount);