浏览代码

角色单条删除时使其逻辑删除

RuoYi 4 年之前
父节点
当前提交
fa52c64c92
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml

+ 1 - 1
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml

@@ -79,7 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 	</select>
 	
 	<delete id="deleteRoleById" parameterType="Long">
- 		delete from sys_role where role_id = #{roleId}
+ 		update sys_role set del_flag = '2' where role_id = #{roleId}
  	</delete>
  	
  	<delete id="deleteRoleByIds" parameterType="Long">