duyj il y a 2 ans
Parent
commit
749013c16c

+ 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>