From 3e02abec44a648f01174a4c3494a96ccb46a3b1a Mon Sep 17 00:00:00 2001
From: zqy <2522236926@qq.com>
Date: 星期二, 11 十一月 2025 21:39:20 +0800
Subject: [PATCH] 会员&充值相关模块
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZAutobiographyController.java | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZAutobiographyController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZAutobiographyController.java
index bf1eb78..eff923f 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZAutobiographyController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZAutobiographyController.java
@@ -52,10 +52,10 @@
* 杩斿洖鐗瑰畾鏃舵湡鐨勪釜浜鸿嚜浼�
*/
@GetMapping("/byTerm")
- public AjaxResult listByTerm(@PathParam("termId")Integer termId){
+ public AjaxResult listByTerm(@PathParam("term")String term){
SysUser user = SecurityUtils.getLoginUser().getUser();
Long userId = user.getUserId();
- List<ZAutobiography> zAutobiographys=zAutobiographyService.listByTerm(userId,termId);
+ List<ZAutobiography> zAutobiographys=zAutobiographyService.listByTerm(userId,term);
return AjaxResult.success(zAutobiographys);
}
@@ -95,7 +95,7 @@
// }
/**
- * 鏂板鎴栬�呬慨鏀逛釜浜鸿嚜浼犺褰�
+ * 鏂板涓汉鑷紶璁板綍
*/
// @PreAuthorize("@ss.hasPermi('system:property:add')")
@Log(title = "涓汉鑷紶璁板綍", businessType = BusinessType.INSERT)
@@ -105,19 +105,19 @@
SysUser user = SecurityUtils.getLoginUser().getUser();
Long userId = user.getUserId();
zAutobiography.setUserId(userId);
- return toAjax(zAutobiographyService.saveOrUpdate(zAutobiography));
+ return toAjax(zAutobiographyService.save(zAutobiography));
}
-// /**
-// * 淇敼涓汉鑷紶璁板綍
-// */
-//// @PreAuthorize("@ss.hasPermi('system:property:edit')")
-// @Log(title = "涓汉鑷紶璁板綍", businessType = BusinessType.UPDATE)
-// @PutMapping
-// public AjaxResult edit(@RequestBody ZAutobiography zAutobiography)
-// {
-// return toAjax(zAutobiographyService.updateById(zAutobiography));
-// }
+ /**
+ * 淇敼涓汉鑷紶璁板綍
+ */
+// @PreAuthorize("@ss.hasPermi('system:property:edit')")
+ @Log(title = "涓汉鑷紶璁板綍", businessType = BusinessType.UPDATE)
+ @PutMapping
+ public AjaxResult edit(@RequestBody ZAutobiography zAutobiography)
+ {
+ return toAjax(zAutobiographyService.updateById(zAutobiography));
+ }
//
/**
* 鎵归噺鍒犻櫎涓汉鑷紶璁板綍
--
Gitblit v1.9.1