From 2f13f59f023fba63aa993172d48c14bcaaafb233 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 16 五月 2024 13:53:34 +0800
Subject: [PATCH] 代码提交
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailController.java | 28 ++++++++++++++++++++--------
1 files changed, 20 insertions(+), 8 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailController.java
index dccd9ee..d08876e 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailController.java
@@ -7,9 +7,11 @@
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.exception.base.BaseException;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.project.domain.FunddetailReqVo;
import com.ruoyi.project.domain.ServiceFunddetail;
+import com.ruoyi.project.domain.SpStatBonusReq;
import com.ruoyi.project.domain.vo.TaxMoneyVO;
import com.ruoyi.project.service.IServiceFunddetailService;
import io.swagger.annotations.Api;
@@ -40,7 +42,7 @@
* 鏌ヨ璐圭敤鐢宠鏄庣粏鍒楄〃
*/
@ApiOperation("鏌ヨ璐圭敤鐢宠鏄庣粏鍒楄〃")
- //@PreAuthorize("@ss.hasPermi('project:funddetail:list')")
+ //// @PreAuthorize("@ss.hasPermi('project:funddetail:list')")
@GetMapping("/list")
public TableDataInfo list(ServiceFunddetail serviceFunddetail) {
startPage();
@@ -53,7 +55,7 @@
* 瀵煎嚭璐圭敤鐢宠鏄庣粏鍒楄〃
*/
@ApiOperation("瀵煎嚭璐圭敤鐢宠鏄庣粏鍒楄〃")
- //@PreAuthorize("@ss.hasPermi('project:funddetail:export')")
+ //// @PreAuthorize("@ss.hasPermi('project:funddetail:export')")
@Log(title = "璐圭敤鐢宠鏄庣粏", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(ServiceFunddetail serviceFunddetail) {
@@ -66,7 +68,7 @@
* 鑾峰彇璐圭敤鐢宠鏄庣粏璇︾粏淇℃伅
*/
@ApiOperation("鑾峰彇璐圭敤鐢宠鏄庣粏璇︾粏淇℃伅")
- //@PreAuthorize("@ss.hasPermi('project:funddetail:query')")
+ //// @PreAuthorize("@ss.hasPermi('project:funddetail:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return AjaxResult.success(serviceFunddetailService.getById(id));
@@ -76,19 +78,20 @@
* 鏂板璐圭敤鐢宠鏄庣粏
*/
@ApiOperation("鏂板璐圭敤鐢宠鏄庣粏")
- //@PreAuthorize("@ss.hasPermi('project:funddetail:add')")
+ //// @PreAuthorize("@ss.hasPermi('project:funddetail:add')")
@Log(title = "璐圭敤鐢宠鏄庣粏", businessType = BusinessType.INSERT)
- @PostMapping
+ @PostMapping("/add")
@NotRepeatCommit(key = "param:arg[1]", value = 30000)
public AjaxResult add(@RequestBody ServiceFunddetail serviceFunddetail) {
- return toAjax(serviceFunddetailService.save(serviceFunddetail));
+ boolean save = serviceFunddetailService.save(serviceFunddetail);
+ return AjaxResult.success(serviceFunddetail);
}
/**
* 淇敼璐圭敤鐢宠鏄庣粏
*/
@ApiOperation("淇敼璐圭敤鐢宠鏄庣粏")
- //@PreAuthorize("@ss.hasPermi('project:funddetail:edit')")
+ //// @PreAuthorize("@ss.hasPermi('project:funddetail:edit')")
@Log(title = "璐圭敤鐢宠鏄庣粏", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@NotRepeatCommit(key = "param:arg[1]", value = 30000)
@@ -101,7 +104,7 @@
* 鍒犻櫎璐圭敤鐢宠鏄庣粏
*/
@ApiOperation("鍒犻櫎璐圭敤鐢宠鏄庣粏")
- //@PreAuthorize("@ss.hasPermi('project:funddetail:remove')")
+ //// @PreAuthorize("@ss.hasPermi('project:funddetail:remove')")
@Log(title = "璐圭敤鐢宠鏄庣粏", businessType = BusinessType.DELETE)
@GetMapping("/remove/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
@@ -179,4 +182,13 @@
// return AjaxResult.success(serviceFunddetailService.performance(serviceFunddetail));
// }
+ /**
+ * 鏌ヨ缁╂晥濂栭噾缁熻
+ */
+ @ApiOperation("鏌ヨ缁╂晥濂栭噾缁熻")
+ @PostMapping("/getListBySpStatBonus")
+ public TableDataInfo getListBySpStatBonus(@RequestBody SpStatBonusReq spStatBonusReq) {
+ startPage();
+ return getDataTable(serviceFunddetailService.getListBySpStatBonus(spStatBonusReq));
+ }
}
--
Gitblit v1.9.3