duyj 2 年之前
父节点
当前提交
749013c16c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      suishenbang-system/src/main/resources/mapper/system/SysUserMapper.xml

+ 1 - 1
suishenbang-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -438,7 +438,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 	</select>
 
 	<insert id="insertUserRole">
-		insert into sys_user_role (user_id,role_id) select user_id,${roleId} from sys_user_role where user_id = {userId} and role_id !=#{roleId}
+		insert into sys_user_role (user_id,role_id) select user_id,${roleId} from sys_user_role where user_id = #{userId} and role_id != #{roleId}
 	</insert>
 
 </mapper>