超过7天自动审批开发

This commit is contained in:
lixuetao
2023-12-12 16:40:03 +08:00
parent d7e6177001
commit 9d85d696ca
@@ -43,7 +43,7 @@ public class OverdueAutoApproveTimer {
*/ */
// @GetMapping("/autoApproveOverDue7") // @GetMapping("/autoApproveOverDue7")
@Scheduled(cron="0 1 0 * * *") //每晚1点执行 @Scheduled(cron="0 1 0 * * *") //每晚1点执行
public void autoApproveOverDue7() throws ParseException { public void autoApproveOverDue7() {
TaskCommonQuery taskCommonQuery = new TaskCommonQuery(); TaskCommonQuery taskCommonQuery = new TaskCommonQuery();
taskCommonQuery.setPrcType(FlowTypeEnum.SCBGLC.getValue()); taskCommonQuery.setPrcType(FlowTypeEnum.SCBGLC.getValue());
ResponseMessage<Page> responseMessage = todoTaskController.todoTaskListByUserId(taskCommonQuery); ResponseMessage<Page> responseMessage = todoTaskController.todoTaskListByUserId(taskCommonQuery);