luohairen
2024-12-12 3a3ab7e50002d269b65473f8cb139fb7f908f292
business/src/main/java/com/ycl/controller/ProjectPlanExamineRecordController.java
@@ -1,10 +1,12 @@
package com.ycl.controller;
import com.ycl.common.base.Result;
import com.ycl.common.core.controller.BaseController;
import com.ycl.common.group.Add;
import com.ycl.common.group.Update;
import com.ycl.domain.form.ProjectPlanExamineRecordForm;
import com.ycl.domain.query.ProjectPlanExamineRecordQuery;
import com.ycl.domain.form.ProgressReportResponseForm;
import com.ycl.service.ProjectPlanExamineRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -26,8 +28,8 @@
@RequiredArgsConstructor
@Api(value = "项目审核记录表", tags = "项目审核记录表管理")
@RestController
@RequestMapping("/project-plan-examine-record")
public class ProjectPlanExamineRecordController {
@RequestMapping("/api/project-plan-examine-record")
public class ProjectPlanExamineRecordController extends BaseController {
    private final ProjectPlanExamineRecordService projectPlanExamineRecordService;
@@ -79,4 +81,36 @@
    public Result list() {
        return projectPlanExamineRecordService.all();
    }
    @GetMapping("/departmentApproval/{id}")
    public Result departmentApproval(@PathVariable("id") Long projectPlanRecordId) {
        return projectPlanExamineRecordService.departmentApproval(projectPlanRecordId);
    }
    @GetMapping("/planLog/{id}")
    public Result planLog(@PathVariable("id") Long projectPlanRecordId) {
        return projectPlanExamineRecordService.planLog(projectPlanRecordId);
    }
    @PostMapping("/saveExamine")
    public Result saveExamine(@RequestBody ProjectPlanExamineRecordForm form) {
        return projectPlanExamineRecordService.saveExamine(form);
    }
    @PostMapping("/replyExamine")
    public Result replyExamine(@RequestBody ProjectPlanExamineRecordForm form) {
        return projectPlanExamineRecordService.replyExamine(form);
    }
    @GetMapping("/todo_list")
//    @PreAuthorize("hasAuthority('projectPlanExamineRecord:list')")
    @ApiOperation(value = "进度待办列表", notes = "进度待办列表")
    public Result todoList(ProjectPlanExamineRecordQuery query) {
        return projectPlanExamineRecordService.todoList(getUserId(),query);
    }
    @PostMapping("/reply")
    public Result reply(@RequestBody ProgressReportResponseForm form) {
        return projectPlanExamineRecordService.reply(form);
    }
}