From 2f5a6e996ea7c58d174b52082e78fd172a9ada96 Mon Sep 17 00:00:00 2001 From: jenn <11@11.11> Date: 星期四, 06 七月 2023 19:26:25 +0800 Subject: [PATCH] fix 修复 代码生成 前端添加或修改表单修改列生成问题 --- ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysUserServiceImpl.java | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysUserServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysUserServiceImpl.java index 57d562f..c8f6327 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysUserServiceImpl.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysUserServiceImpl.java @@ -330,9 +330,7 @@ @Override @Transactional(rollbackFor = Exception.class) public void insertUserAuth(Long userId, Long[] roleIds) { - userRoleMapper.delete(new LambdaQueryWrapper<SysUserRole>() - .eq(SysUserRole::getUserId, userId)); - insertUserRole(userId, roleIds, false); + insertUserRole(userId, roleIds, true); } /** -- Gitblit v1.9.3