From b11bbeeb3c3a8e260892e45f68cdd137619ef3e5 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 27 十一月 2024 11:17:57 +0800
Subject: [PATCH] 项目库详情初始化
---
business/src/main/java/com/ycl/controller/ProjectPlanRecordController.java | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/business/src/main/java/com/ycl/controller/ProjectPlanRecordController.java b/business/src/main/java/com/ycl/controller/ProjectPlanRecordController.java
index e8cdc8e..7ee291a 100644
--- a/business/src/main/java/com/ycl/controller/ProjectPlanRecordController.java
+++ b/business/src/main/java/com/ycl/controller/ProjectPlanRecordController.java
@@ -6,6 +6,7 @@
import com.ycl.common.group.Update;
import com.ycl.domain.form.ProjectPlanRecordForm;
import com.ycl.domain.query.ProjectPlanRecordQuery;
+import com.ycl.domain.vo.ProjectPlanRecordAddRequest;
import com.ycl.service.ProjectPlanRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -34,8 +35,8 @@
@PostMapping
@ApiOperation(value = "娣诲姞", notes = "娣诲姞")
- @PreAuthorize("hasAuthority('projectPlanRecord:add')")
- public Result add(@RequestBody @Validated(Add.class) ProjectPlanRecordForm form) {
+// @PreAuthorize("hasAuthority('projectPlanRecord:add')")
+ public Result add(@RequestBody @Validated(Add.class) ProjectPlanRecordAddRequest form) {
return projectPlanRecordService.add(form);
}
@@ -48,7 +49,7 @@
@DeleteMapping("/{id}")
@ApiOperation(value = "ID鍒犻櫎", notes = "ID鍒犻櫎")
- @PreAuthorize("hasAuthority('projectPlanRecord:del')")
+// @PreAuthorize("hasAuthority('projectPlanRecord:del')")
public Result removeById(@PathVariable("id") String id) {
return projectPlanRecordService.removeById(id);
}
@@ -67,9 +68,9 @@
return projectPlanRecordService.page(query);
}
- @GetMapping("/{id}")
+ @PostMapping("/{id}")
@ApiOperation(value = "璇︽儏", notes = "璇︽儏")
- @PreAuthorize("hasAuthority('projectPlanRecord:detail')")
+// @PreAuthorize("hasAuthority('projectPlanRecord:detail')")
public Result detail(@PathVariable("id") Integer id) {
return projectPlanRecordService.detail(id);
}
--
Gitblit v1.8.0