From 4c95b4e5fee50a03c8ba964264ea3ef163e7805b Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 20 三月 2024 18:23:49 +0800
Subject: [PATCH] 代码提交
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseExpertfeetypeController.java | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseExpertfeetypeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseExpertfeetypeController.java
index c666fc6..90f3cd5 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseExpertfeetypeController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseExpertfeetypeController.java
@@ -5,6 +5,7 @@
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;
@@ -31,6 +32,7 @@
* @author ruoyi
* @date 2022-04-19
*/
+@Slf4j
@Api("涓撳璐圭敤")
@RestController
@RequestMapping("/project/expertfeetype")
@@ -44,6 +46,7 @@
@ApiOperation("鏌ヨ涓撳璐圭敤鍒楄〃")
@GetMapping("/list")
public TableDataInfo list(BaseExpertfeetype baseExpertfeetype) {
+ log.info("鏌ヨ涓撳璐圭敤鍒楄〃{}锛�", baseExpertfeetype);
startPage();
List<BaseExpertfeetype> list = baseExpertfeetypeService.queryList(baseExpertfeetype);
return getDataTable(list);
@@ -56,6 +59,7 @@
@Log(title = "涓撳璐圭敤", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(BaseExpertfeetype baseExpertfeetype) {
+ log.info("瀵煎嚭涓撳璐圭敤鍒楄〃{}锛�", baseExpertfeetype);
List<BaseExpertfeetype> list = baseExpertfeetypeService.queryList(baseExpertfeetype);
ExcelUtil<BaseExpertfeetype> util = new ExcelUtil<BaseExpertfeetype>(BaseExpertfeetype.class);
return util.exportExcel(list, "涓撳璐圭敤鏁版嵁");
@@ -67,6 +71,7 @@
@ApiOperation("鑾峰彇涓撳璐圭敤璇︾粏淇℃伅")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
+ log.info("鑾峰彇涓撳璐圭敤璇︾粏淇℃伅{}锛�", id);
return AjaxResult.success(baseExpertfeetypeService.getById(id));
}
@@ -75,10 +80,13 @@
*/
@ApiOperation("鏂板涓撳璐圭敤")
@Log(title = "涓撳璐圭敤", businessType = BusinessType.INSERT)
- @PostMapping
+ @PostMapping("/add")
@RepeatSubmit
public AjaxResult add(@RequestBody BaseExpertfeetype baseExpertfeetype) {
- return toAjax(baseExpertfeetypeService.save(baseExpertfeetype));
+ log.info("鏂板涓撳璐圭敤{}锛�", baseExpertfeetype);
+ boolean save = baseExpertfeetypeService.save(baseExpertfeetype);
+ log.info("杩斿洖鐨刡aseExpertfeetype鐨刬d:{}锛�", baseExpertfeetype.getId());
+ return AjaxResult.success(baseExpertfeetype);
}
/**
@@ -89,6 +97,7 @@
@PostMapping("/edit")
@RepeatSubmit
public AjaxResult edit(@RequestBody BaseExpertfeetype baseExpertfeetype) {
+ log.info("淇敼涓撳璐圭敤{}锛�", baseExpertfeetype);
return toAjax(baseExpertfeetypeService.updateById(baseExpertfeetype));
}
@@ -99,6 +108,7 @@
@Log(title = "涓撳璐圭敤", businessType = BusinessType.DELETE)
@DeleteMapping("/remove/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
+ log.info("鍒犻櫎涓撳璐圭敤{}锛�", ids);
return toAjax(baseExpertfeetypeService.removeByIds(Arrays.asList(ids)));
}
}
--
Gitblit v1.9.3