lidongdong
2022-10-19 9b76904a6dd7e452bf01ccb2a0902bbbce29e1aa
flower_city/src/main/resources/mapper/SysUserMapper.xml
@@ -92,7 +92,10 @@
        select count(user_id) from automessage_sys_user
        <where>
            <if test="userName != null and userName != ''">
                AND user_name like concat('%', #{userName}, '%')
                AND user_name like concat('%', #{userName}, '%') or
                (department_id in (SELECT id FROM automessage_organization_chart
                WHERE organization_name like concat('%', #{userName}, '%')))
            </if>
            <if test="userType != null and userType != ''">
                AND user_type=#{userType}
@@ -115,7 +118,10 @@
        <include refid="selectSysUserVo"/>
        <where>
            <if test="userName != null and userName != ''">
                AND user_name like concat('%', #{userName}, '%')
                AND user_name like concat('%', #{userName}, '%') or
                (department_id in (SELECT id FROM automessage_organization_chart
                WHERE organization_name like concat('%', #{userName}, '%')))
            </if>
            <if test="userType != null and userType != ''">
                AND user_type=#{userType}