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