From fc4b360e4ce47c29cc96f941d37d22a225a139b1 Mon Sep 17 00:00:00 2001 From: whywhyo <1511349576@qq.com> Date: 星期六, 29 七月 2023 10:37:32 +0800 Subject: [PATCH] 56187 --- 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