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;
@@ -27,7 +29,7 @@
@Api(value = "项目审核记录表", tags = "项目审核记录表管理")
@RestController
@RequestMapping("/api/project-plan-examine-record")
public class ProjectPlanExamineRecordController {
public class ProjectPlanExamineRecordController extends BaseController {
    private final ProjectPlanExamineRecordService projectPlanExamineRecordService;
@@ -81,12 +83,12 @@
    }
    @GetMapping("/departmentApproval/{id}")
    public Result departmentApproval(@PathVariable("id") Integer projectPlanRecordId) {
    public Result departmentApproval(@PathVariable("id") Long projectPlanRecordId) {
        return projectPlanExamineRecordService.departmentApproval(projectPlanRecordId);
    }
    @GetMapping("/planLog/{id}")
    public Result planLog(@PathVariable("id") Integer projectPlanRecordId) {
    public Result planLog(@PathVariable("id") Long projectPlanRecordId) {
        return projectPlanExamineRecordService.planLog(projectPlanRecordId);
    }
@@ -99,4 +101,16 @@
    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);
    }
}