asd
Jinquan_Ou
2023-03-30 85272bfe32b03c6bd4b970f487c07c5d518db535
asd
1个文件已修改
24 ■■■■ 已修改文件
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZAutobiographyController.java 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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));
    }
//
    /**
     * 批量删除个人自传记录