瀏覽代碼

pms 瑞鹰综合队生成当天的日报

zhangcl 1 周之前
父節點
當前提交
c1ee3458be

+ 5 - 5
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/job/dailyreport/CreateRyDailyReportOrderJob.java

@@ -44,7 +44,7 @@ import static cn.iocoder.yudao.module.pms.framework.config.MultiThreadConfigurat
 
 /**
  * 瑞鹰挂靠队伍 无设备队伍 生成 修井 日报
- * 新疆综合队 18:00 生成日报
+ * 新疆综合队 18:00 生成日报 日报日期为当天
  */
 @Component
 @Slf4j
@@ -167,10 +167,10 @@ public class CreateRyDailyReportOrderJob implements JobHandler {
                 if (formatDateStr.equals(currentFormatDateStr) && !updaterPair.containsKey(report.getDeptId())) {
                     currentDayReportedDeptIds.add(report.getDeptId());
                 }
-                // 查询 新疆综合队 在天有没有创建过日报
-                if (formatDateStr.equals(tomorrowFormatDateStr)) {
+                // 查询 新疆综合队 在天有没有创建过日报
+                /* if (formatDateStr.equals(tomorrowFormatDateStr)) {
                     tomorrowReportedDeptIds.add(report.getDeptId());
-                }
+                } */
             });
         }
         System.out.println("综合队明天的日报数量:" + tomorrowReportedDeptIds.size());
@@ -230,7 +230,7 @@ public class CreateRyDailyReportOrderJob implements JobHandler {
                 noDeviceReport.setDeptId(tobeReportXjDeptId);
                 noDeviceReport.setProjectClassification("2");
                 if (affiliatedDeptIds.contains(tobeReportXjDeptId)) {
-                    // 挂靠队伍 煤层气 的日报
+                    // 挂靠队伍 煤层气 或 综合队 的日报
                     noDeviceReport.setCreator(String.valueOf(userId));
                 } else {
                     // 综合队等其它非挂靠修井队 综合队需要生成 明天 的日报