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/BaseTravelcityController.java |   41 +++++++++++++++++++++--------------------
 1 files changed, 21 insertions(+), 20 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseTravelcityController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseTravelcityController.java
index c81e15b..9151cfb 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseTravelcityController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseTravelcityController.java
@@ -11,6 +11,7 @@
 import com.ruoyi.project.service.IBaseTravelcityService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
@@ -20,15 +21,15 @@
 
 /**
  * 宸梾鍩庡競鍜岃ˉ璐存爣鍑咰ontroller
- * 
+ *
  * @author ruoyi
  * @date 2023-04-23
  */
+@Slf4j
 @Api("宸梾鍩庡競鍜岃ˉ璐存爣鍑�")
 @RestController
 @RequestMapping("/project/travelcity")
-public class BaseTravelcityController extends BaseController
-{
+public class BaseTravelcityController extends BaseController {
     @Autowired
     private IBaseTravelcityService baseTravelcityService;
 
@@ -38,8 +39,8 @@
     @ApiOperation("鏌ヨ宸梾鍩庡競鍜岃ˉ璐存爣鍑嗗垪琛�")
     @PreAuthorize("@ss.hasPermi('project:travelcity:list')")
     @GetMapping("/list")
-    public TableDataInfo list(BaseTravelcity baseTravelcity)
-    {
+    public TableDataInfo list(BaseTravelcity baseTravelcity) {
+        log.info("鏌ヨ宸梾鍩庡競鍜岃ˉ璐存爣鍑嗗垪琛▄}锛�", baseTravelcity);
         startPage();
         List<BaseTravelcity> list = baseTravelcityService.queryList(baseTravelcity);
         return getDataTable(list);
@@ -52,8 +53,8 @@
     @PreAuthorize("@ss.hasPermi('project:travelcity:export')")
     @Log(title = "宸梾鍩庡競鍜岃ˉ璐存爣鍑�", businessType = BusinessType.EXPORT)
     @GetMapping("/export")
-    public AjaxResult export(BaseTravelcity baseTravelcity)
-    {
+    public AjaxResult export(BaseTravelcity baseTravelcity) {
+        log.info("瀵煎嚭宸梾鍩庡競鍜岃ˉ璐存爣鍑嗗垪琛▄}锛�", baseTravelcity);
         List<BaseTravelcity> list = baseTravelcityService.queryList(baseTravelcity);
         ExcelUtil<BaseTravelcity> util = new ExcelUtil<BaseTravelcity>(BaseTravelcity.class);
         return util.exportExcel(list, "宸梾鍩庡競鍜岃ˉ璐存爣鍑嗘暟鎹�");
@@ -65,8 +66,8 @@
     @ApiOperation("鑾峰彇宸梾鍩庡競鍜岃ˉ璐存爣鍑嗚缁嗕俊鎭�")
     @PreAuthorize("@ss.hasPermi('project:travelcity:query')")
     @GetMapping(value = "/{id}")
-    public AjaxResult getInfo(@PathVariable("id") Long id)
-    {
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
+        log.info("鑾峰彇宸梾鍩庡競鍜岃ˉ璐存爣鍑嗚缁嗕俊鎭瘂}锛�", id);
         return AjaxResult.success(baseTravelcityService.getById(id));
     }
 
@@ -78,8 +79,8 @@
     @Log(title = "宸梾鍩庡競鍜岃ˉ璐存爣鍑�", businessType = BusinessType.INSERT)
     @PostMapping
     @RepeatSubmit
-    public AjaxResult add(@RequestBody BaseTravelcity baseTravelcity)
-    {
+    public AjaxResult add(@RequestBody BaseTravelcity baseTravelcity) {
+        log.info("鏂板宸梾鍩庡競鍜岃ˉ璐存爣鍑唟}锛�", baseTravelcity);
         return toAjax(baseTravelcityService.save(baseTravelcity));
     }
 
@@ -90,9 +91,9 @@
     @PreAuthorize("@ss.hasPermi('project:travelcity:edit')")
     @Log(title = "宸梾鍩庡競鍜岃ˉ璐存爣鍑�", businessType = BusinessType.UPDATE)
     @PutMapping
-    @RepeatSubmit    
-    public AjaxResult edit(@RequestBody BaseTravelcity baseTravelcity)
-    {
+    @RepeatSubmit
+    public AjaxResult edit(@RequestBody BaseTravelcity baseTravelcity) {
+        log.info("淇敼宸梾鍩庡競鍜岃ˉ璐存爣鍑唟}锛�", baseTravelcity);
         return toAjax(baseTravelcityService.updateById(baseTravelcity));
     }
 
@@ -103,8 +104,8 @@
     @PreAuthorize("@ss.hasPermi('project:travelcity:remove')")
     @Log(title = "宸梾鍩庡競鍜岃ˉ璐存爣鍑�", businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}")
-    public AjaxResult remove(@PathVariable Long[] ids)
-    {
+    public AjaxResult remove(@PathVariable Long[] ids) {
+        log.info("鍒犻櫎宸梾鍩庡競鍜岃ˉ璐存爣鍑唟}锛�", ids);
         return toAjax(baseTravelcityService.removeByIds(Arrays.asList(ids)));
     }
 
@@ -113,11 +114,11 @@
      * 鏍规嵁鍖哄煙鑾峰彇浼欓琛ュ姪銆佸叕鏉傝琛ュ姪
      */
     @ApiOperation("鏍规嵁鍖哄煙鑾峰彇琛ュ姪")
-   // @PreAuthorize("@ss.hasPermi('project:travelcity:list')")
+    // @PreAuthorize("@ss.hasPermi('project:travelcity:list')")
     @GetMapping("/getSubsidy/{cityCode}")
-    public AjaxResult getSubsidy(@PathVariable String cityCode)
-    {
-        BaseTravelcity baseTravelcity=baseTravelcityService.getSubsidy(cityCode);
+    public AjaxResult getSubsidy(@PathVariable String cityCode) {
+        log.info("鏍规嵁鍖哄煙鑾峰彇浼欓琛ュ姪銆佸叕鏉傝琛ュ姪{}锛�", cityCode);
+        BaseTravelcity baseTravelcity = baseTravelcityService.getSubsidy(cityCode);
         return AjaxResult.success(baseTravelcity);
     }
 }

--
Gitblit v1.9.3