|
|
|
|
@ -89,13 +89,14 @@ public class MaintenanceController extends BladeController { |
|
|
|
|
|
|
|
|
|
/*---------- 维修任务开始 ----------*/ |
|
|
|
|
|
|
|
|
|
@PostMapping("/task-create") |
|
|
|
|
@Operation(summary = "定时任务-根据维保计划生成维保任务", description = "定时任务-根据维保计划生成维保任务") |
|
|
|
|
public R taskCreate() { |
|
|
|
|
LocalDate now = LocalDate.now(); |
|
|
|
|
// 注意要查询上一次巡检计划中发现但未维修的
|
|
|
|
|
return R.status(planService.createTask(now)); |
|
|
|
|
} |
|
|
|
|
@PostMapping("/task-create") |
|
|
|
|
@Operation(summary = "定时任务-根据维保计划生成维保任务", description = "定时任务-根据维保计划生成维保任务") |
|
|
|
|
public R taskCreate() { |
|
|
|
|
// 提前五天生成
|
|
|
|
|
LocalDate now = LocalDate.now().minusDays(-5); |
|
|
|
|
// 注意要查询上一次巡检计划中发现但未维修的
|
|
|
|
|
return R.status(planService.createTask(now)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/task-page") |
|
|
|
|
@Operation(summary = "维保任务列表", description = "维保任务列表") |
|
|
|
|
|