瀏覽代碼

sql修改

gao.qiang 2 年之前
父節點
當前提交
378e239da5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      base-system/src/main/resources/mapper/system/SysRoleMapper.xml

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

@@ -104,7 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 				and r.role_name like concat('%', #{roleName}, '%')
 			</if>
 			<if test="roleId != null and roleId != 0">
-				and r.role_id like concat('%', #{roleId}, '%')
+				and r.role_id = #{roleId}
 			</if>
 			<if test="status != null and status != 0">
 				and r.status=#{status}