From 6f344e6360751574f7e03b21c00cfa3f4b2bc099 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 10 十一月 2023 15:41:41 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDistributedetailController.java |   38 ++++++++++++++++++++------------------
 1 files changed, 20 insertions(+), 18 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDistributedetailController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDistributedetailController.java
index 1122b45..800cf68 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDistributedetailController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDistributedetailController.java
@@ -2,8 +2,10 @@
 
 import java.util.Arrays;
 import java.util.List;
+
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
@@ -26,15 +28,15 @@
 
 /**
  * 涓撳璐圭敤鍒嗗彂姹囨�绘槑缁咰ontroller
- * 
+ *
  * @author ruoyi
  * @date 2022-03-01
  */
+@Slf4j
 @Api("涓撳璐圭敤鍒嗗彂姹囨�绘槑缁�")
 @RestController
 @RequestMapping("/project/distributedetail")
-public class ServiceDistributedetailController extends BaseController
-{
+public class ServiceDistributedetailController extends BaseController {
     @Autowired
     private IServiceDistributedetailService serviceDistributedetailService;
 
@@ -43,8 +45,8 @@
      */
     @ApiOperation("鏌ヨ涓撳璐圭敤鍒嗗彂姹囨�绘槑缁嗗垪琛�")
     @GetMapping("/list")
-    public TableDataInfo list(ServiceDistributedetail serviceDistributedetail)
-    {
+    public TableDataInfo list(ServiceDistributedetail serviceDistributedetail) {
+        log.info("鏌ヨ涓撳璐圭敤鍒嗗彂姹囨�绘槑缁嗗垪琛細{}", serviceDistributedetail);
         startPage();
         List<ServiceDistributedetail> list = serviceDistributedetailService.queryList(serviceDistributedetail);
         return getDataTable(list);
@@ -56,8 +58,8 @@
     @ApiOperation("瀵煎嚭涓撳璐圭敤鍒嗗彂姹囨�绘槑缁嗗垪琛�")
     @Log(title = "涓撳璐圭敤鍒嗗彂姹囨�绘槑缁�", businessType = BusinessType.EXPORT)
     @GetMapping("/export")
-    public AjaxResult export(ServiceDistributedetail serviceDistributedetail)
-    {
+    public AjaxResult export(ServiceDistributedetail serviceDistributedetail) {
+        log.info("瀵煎嚭涓撳璐圭敤鍒嗗彂姹囨�绘槑缁嗗垪琛細{}", serviceDistributedetail);
         List<ServiceDistributedetail> list = serviceDistributedetailService.queryList(serviceDistributedetail);
         ExcelUtil<ServiceDistributedetail> util = new ExcelUtil<ServiceDistributedetail>(ServiceDistributedetail.class);
         return util.exportExcel(list, "涓撳璐圭敤鍒嗗彂姹囨�绘槑缁嗘暟鎹�");
@@ -68,8 +70,8 @@
      */
     @ApiOperation("鑾峰彇涓撳璐圭敤鍒嗗彂姹囨�绘槑缁嗚缁嗕俊鎭�")
     @GetMapping(value = "/{id}")
-    public AjaxResult getInfo(@PathVariable("id") Long id)
-    {
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
+        log.info("鑾峰彇涓撳璐圭敤鍒嗗彂姹囨�绘槑缁嗚缁嗕俊鎭細{}", id);
         return AjaxResult.success(serviceDistributedetailService.getById(id));
     }
 
@@ -80,8 +82,8 @@
     @Log(title = "涓撳璐圭敤鍒嗗彂姹囨�绘槑缁�", businessType = BusinessType.INSERT)
     @PostMapping
     @RepeatSubmit
-    public AjaxResult add(@RequestBody ServiceDistributedetail serviceDistributedetail)
-    {
+    public AjaxResult add(@RequestBody ServiceDistributedetail serviceDistributedetail) {
+        log.info("鏂板涓撳璐圭敤鍒嗗彂姹囨�绘槑缁嗭細{}", serviceDistributedetail);
         return toAjax(serviceDistributedetailService.save(serviceDistributedetail));
     }
 
@@ -90,10 +92,10 @@
      */
     @ApiOperation("淇敼涓撳璐圭敤鍒嗗彂姹囨�绘槑缁�")
     @Log(title = "涓撳璐圭敤鍒嗗彂姹囨�绘槑缁�", businessType = BusinessType.UPDATE)
-    @PutMapping
-    @RepeatSubmit    
-    public AjaxResult edit(@RequestBody ServiceDistributedetail serviceDistributedetail)
-    {
+    @PostMapping("/edit")
+    @RepeatSubmit
+    public AjaxResult edit(@RequestBody ServiceDistributedetail serviceDistributedetail) {
+        log.info("淇敼涓撳璐圭敤鍒嗗彂姹囨�绘槑缁嗭細{}", serviceDistributedetail);
         return toAjax(serviceDistributedetailService.updateById(serviceDistributedetail));
     }
 
@@ -102,9 +104,9 @@
      */
     @ApiOperation("鍒犻櫎涓撳璐圭敤鍒嗗彂姹囨�绘槑缁�")
     @Log(title = "涓撳璐圭敤鍒嗗彂姹囨�绘槑缁�", businessType = BusinessType.DELETE)
-    @DeleteMapping("/{ids}")
-    public AjaxResult remove(@PathVariable Long[] ids)
-    {
+    @GetMapping("/remove/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids) {
+        log.info("鍒犻櫎涓撳璐圭敤鍒嗗彂姹囨�绘槑缁嗭細{}", ids);
         return toAjax(serviceDistributedetailService.removeByIds(Arrays.asList(ids)));
     }
 }

--
Gitblit v1.9.3