From 1496a2640408f000f31e01ebe90b5ef97237f5a1 Mon Sep 17 00:00:00 2001
From: zqy <2522236926@qq.com>
Date: 星期二, 19 八月 2025 19:42:46 +0800
Subject: [PATCH] 修改婚姻bug && 管理员修改用户信息时 同步修改用户姓名、性别、婚姻状态

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZRotationController.java |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZRotationController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZRotationController.java
index f12fe00..0240432 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZRotationController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZRotationController.java
@@ -41,6 +41,17 @@
         return AjaxResult.success();
     }
 
+    @PutMapping()
+    public AjaxResult modifyRotation(@RequestBody ZRotation zRotation){
+        SysUser user = SecurityUtils.getLoginUser().getUser();
+        Long userId = user.getUserId();
+        zRotation.setUid(userId);
+        zRotationService.updateById(zRotation);
+        return AjaxResult.success();
+    }
+
+
+
     @DeleteMapping("/delete/{ids}")
     public AjaxResult deleteRotation(@PathVariable Long[] ids){
         zRotationService.removeByIds(Arrays.asList(ids));

--
Gitblit v1.9.1