From 85272bfe32b03c6bd4b970f487c07c5d518db535 Mon Sep 17 00:00:00 2001
From: Jinquan_Ou <Jinquan@gdut.com>
Date: 星期四, 30 三月 2023 17:46:18 +0800
Subject: [PATCH] asd

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZAutobiographyController.java |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 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..634a6f8 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
@@ -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