Commit c57316b2 by 林永健

fix(job): 修正工作日报未填写统计任务的调度时间及模板代码设置

- 将任务调度表达式修改为每天23:00触发
- 修正未提交员工统计中模板代码的赋值方式,使用预定义模板代码变量
- 保持任务描述与实际调度时间一致
- 优化代码逻辑,确保统计数据准确获取
1 parent 3695e03a
......@@ -32,7 +32,7 @@ import java.util.stream.Collectors;
* @Version 1.0
*/
@Slf4j
@ElasticJobConf(name = "DailyReportUnsubmittedSummaryJob", cron = "0 23 * * * ?", description = "工作日报未填写统计推送", overwrite = false)
@ElasticJobConf(name = "DailyReportUnsubmittedSummaryJob", cron = "0 0 23 * * ?", description = "工作日报未填写统计推送", overwrite = false)
public class DailyReportUnsubmittedSummaryJob implements SimpleJob {
@Autowired
......@@ -83,7 +83,7 @@ public class DailyReportUnsubmittedSummaryJob implements SimpleJob {
Integer count = 0;
String unsubmittedStaffName = "无";
DigitalManagementStaffRecordDTO staffRecordDTO = new DigitalManagementStaffRecordDTO();
staffRecordDTO.setTemplateCode(templateService.getRegionalTemplateCode());
staffRecordDTO.setTemplateCode(templateCode);
staffRecordDTO.setStartTime(DateUtils.getStartTimeOfDay(new Date()));
staffRecordDTO.setEndTime(new Date());
// 今日未提交员工
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!