From 01c29b4b6cfb1a3223cf9e322f33ead42093e77c Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期三, 02 四月 2025 09:11:22 +0800 Subject: [PATCH] 类名统一,查询启用赋码规则代码提到service --- business/src/main/java/com/ycl/controller/ProjectPlanExamineRecordController.java | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/business/src/main/java/com/ycl/controller/ProjectPlanExamineRecordController.java b/business/src/main/java/com/ycl/controller/ProjectPlanExamineRecordController.java index 982ed76..4111cb5 100644 --- a/business/src/main/java/com/ycl/controller/ProjectPlanExamineRecordController.java +++ b/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; @@ -69,7 +71,7 @@ @GetMapping("/{id}") @ApiOperation(value = "璇︽儏", notes = "璇︽儏") @PreAuthorize("hasAuthority('projectPlanExamineRecord:detail')") - public Result detail(@PathVariable("id") Integer id) { + public Result detail(@PathVariable("id") Long id) { return projectPlanExamineRecordService.detail(id); } @@ -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); + } } -- Gitblit v1.8.0