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>