lidongdong
2022-10-20 45e4e73fcc9923d79499332a476721b23e080e93
flower_city/src/main/resources/mapper/GuideRepairOrderMapper.xml
@@ -83,7 +83,11 @@
        <include refid="selectGuideRepairOrderVo"/>
        <where>
            <if test="matterName != null and matterName != ''">
                AND matter_name like concat('%', #{matterName}, '%')
                AND (matter_name like concat('%', #{matterName}, '%')) or
                (classify_id in (SELECT id FROM automessage_classify_administration WHERE classify_name like concat('%', #{matterName}, '%')))
            </if>
            <if test="status != null and status != ''">
                AND a.state=#{status}
            </if>
            <if test="ids != null">
                and department_id IN
@@ -99,7 +103,11 @@
        select count(id) from automessage_guide_repair_order
        <where>
            <if test="matterName != null and matterName != ''">
                AND matter_name like   concat('%', #{matterName}, '%')
                AND (matter_name like concat('%', #{matterName}, '%')) or
                (classify_id in (SELECT id FROM automessage_classify_administration WHERE classify_name like concat('%', #{matterName}, '%')))
            </if>
            <if test="status != null and status != ''">
                AND a.state=#{status}
            </if>
            <if test="ids != null">
                and department_id IN