src/main/resources/mapper/UserMapper.xml
@@ -350,8 +350,8 @@ <if test="userName != null and userName != ''"> and real_name like concat('%',#{userName},'%') </if> <if test="role != null "> and role= #{role} <if test="role != null and role.size() > 0"> and role in <foreach collection="role" item="item" open="(" separator="," close=")"> #{item} </foreach> </if> </select>