xiangpei
2024-05-17 abdd896a66eced1355a24ea5eabbee497a745fe5
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>