From 5d32465af99fa8a6333766a446567d2f1285f651 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 26 四月 2024 16:25:53 +0800
Subject: [PATCH] sql备份
---
ycl-server/src/main/java/com/ycl/platform/controller/CalculateReportController.java | 43 ++++++-------------------------------------
1 files changed, 6 insertions(+), 37 deletions(-)
diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/CalculateReportController.java b/ycl-server/src/main/java/com/ycl/platform/controller/CalculateReportController.java
index 2473c04..b2ce714 100644
--- a/ycl-server/src/main/java/com/ycl/platform/controller/CalculateReportController.java
+++ b/ycl-server/src/main/java/com/ycl/platform/controller/CalculateReportController.java
@@ -33,25 +33,6 @@
private final CalculateReportService calculateReportService;
-// @PostMapping
-// @ApiOperation(value = "娣诲姞", notes = "娣诲姞")
-// public Result add(@RequestBody @Validated(Add.class) CalculateReportForm form) {
-// return calculateReportService.add(form);
-// }
-
-// @PutMapping
-// @ApiOperation(value = "淇敼", notes = "淇敼")
-// public Result update(@RequestBody @Validated(Update.class) CalculateReportForm form) {
-// return calculateReportService.update(form);
-// }
-
- @PutMapping
- @ApiOperation(value = "淇敼閲戦", notes = "淇敼閲戦")
- @PreAuthorize("@ss.hasPermi('system:calculate:report:edit:money')")
- public Result adjustMoney(@RequestBody @Validated(Update.class) CalculateReportForm form) {
- return calculateReportService.update(form);
- }
-
@GetMapping("/page")
@ApiOperation(value = "鍒嗛〉", notes = "鍒嗛〉")
@PreAuthorize("@ss.hasPermi('system:calculate:report:page')")
@@ -73,23 +54,11 @@
return calculateReportService.detail(id);
}
-// @GetMapping("/list")
-// @ApiOperation(value = "鍒楄〃", notes = "鍒楄〃")
-// public Result list() {
-// return calculateReportService.all();
-// }
-
-// @DeleteMapping("/{id}")
-// @ApiOperation(value = "ID鍒犻櫎", notes = "ID鍒犻櫎")
-// public Result removeById(@PathVariable("id") String id) {
-// return calculateReportService.removeById(id);
-// }
-//
-// @DeleteMapping("/batch")
-// @ApiOperation(value = "鎵归噺鍒犻櫎", notes = "鎵归噺鍒犻櫎")
-// public Result remove(@RequestBody @NotEmpty(message = "璇烽�夋嫨鏁版嵁") List<String> ids) {
-// return calculateReportService.remove(ids);
-// }
-
+ @PutMapping("/status/{reportId}")
+ @ApiOperation(value = "淇敼鍙戝竷鐘舵��", notes = "淇敼鍙戝竷鐘舵��")
+ @PreAuthorize("@ss.hasPermi('system:calculate:report:status')")
+ public Result updatePublishStatus(@PathVariable("reportId") Long reportId) {
+ return calculateReportService.updatePublishStatus(reportId);
+ }
}
--
Gitblit v1.8.0