duyj 2 jaren geleden
bovenliggende
commit
749013c16c
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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>