From 2b9a47fa7e79db3cbc1fa9a04df6713cf2c3363a Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 04 一月 2024 11:08:49 +0800
Subject: [PATCH] 代码提交
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonorchargeController.java | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonorchargeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonorchargeController.java
index 63821d3..0663dd6 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonorchargeController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonorchargeController.java
@@ -2,6 +2,7 @@
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.annotation.RepeatSubmit;
+import com.ruoyi.common.constant.HttpStatus;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
@@ -16,7 +17,9 @@
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
+import java.util.HashMap;
import java.util.List;
+import java.util.Map;
/**
* 鎹愮尞妗堜緥鍣ㄥ畼鍒桟ontroller
@@ -75,7 +78,10 @@
@PostMapping("/add")
@RepeatSubmit
public AjaxResult add(@RequestBody ServiceDonorcharge serviceDonorcharge) {
- return toAjax(serviceDonorchargeService.save(serviceDonorcharge));
+ serviceDonorchargeService.save(serviceDonorcharge);
+ Map<String, Long> map = new HashMap<>();
+ map.put("id", serviceDonorcharge.getId());
+ return AjaxResult.success(map);
}
/**
--
Gitblit v1.9.3