From 8b8c655968159a016f9b3b9ca42c5fec2abc2f4b Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 07 八月 2023 17:17:34 +0800
Subject: [PATCH] 修改方法名

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java
index 58204bf..fc830e8 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java
@@ -27,6 +27,7 @@
 import lombok.extern.slf4j.Slf4j;
 import org.apache.ibatis.annotations.Options;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.util.CollectionUtils;
 import org.springframework.web.bind.annotation.*;
 
 import java.io.*;
@@ -582,15 +583,19 @@
 
 
     /**
-     * 淇敼璐圭敤鐢宠涓�
+     * 淇敼璐圭敤鐢宠
      */
-    @ApiOperation("淇敼璐圭敤鐢宠涓�")
-    //@PreAuthorize("@ss.hasPermi('project:fund:edit')")
+    @ApiOperation("淇敼璐圭敤鐢宠")
     @Log(title = "璐圭敤鐢宠涓�", businessType = BusinessType.UPDATE)
-    @PutMapping
+    @PostMapping("/fundEdit")
     @RepeatSubmit
-    public AjaxResult edit(@RequestBody ServiceFund serviceFund) {
+    public AjaxResult fundEdit(@RequestBody ServiceFund serviceFund) {
+        log.info("淇敼璐圭敤鐢宠鍏ュ弬:{}", serviceFund);
         List<ServiceFund> infoByInfoIdList = serviceFundService.queryInfoById(serviceFund);
+        log.info("淇敼璐圭敤鐢宠锛岄�氳繃鍏ュ弬鏌ヨ serviceFundService.queryInfoById鏁版嵁涓虹┖,鍏ュ弬:{}", infoByInfoIdList.size());
+        if (CollectionUtils.isEmpty(infoByInfoIdList)) {
+            return toAjax(false);
+        }
         for (ServiceFund sf : infoByInfoIdList) {
             //濡傛灉绛変簬100锛岃鏄庡凡缁忚蛋鍒板尰闄㈣储鍔¢偅杈逛簡锛涜储鍔¢偅杈瑰彇鏁版嵁鏄粠鍒嗕韩琛ㄥ彇锛屾墍浠ワ紝杩欓噷鐩存帴寰�鍒嗕韩琛ㄩ噷娣诲姞鏁版嵁灏辫浜�
             if (sf.getBackflowlevel() == 100 || sf.getBackflowlevel() == 199) {
@@ -606,6 +611,7 @@
             } else {
                 serviceFund.setFlowlevel(sf.getBackflowlevel());
                 boolean bret = serviceFundService.updateById(serviceFund);
+                log.info("serviceFundService.updateById杩斿弬:{}", bret);
 //        if (bret) {
 //            addReiSharedDatd(serviceFund, 2);
 //        }

--
Gitblit v1.9.3