lidongdong
2022-11-22 04c067adcf6c2474b3b690b5b5799ddf9c694817
flower_city/src/main/resources/mapper/HomeStatisticsMapper.xml
@@ -201,7 +201,14 @@
    <!--  办事指南 根据导办数量排序 -->
    <select id="guidanceTransaction" resultType="com.dg.core.db.gen.entity.Guidance">
        SELECT matter_name as name ,(select count(id) from automessage_guide_repair_order
            where automessage_guide_repair_order.matter_id=automessage_transaction_event.id) as num
            where automessage_guide_repair_order.matter_id=automessage_transaction_event.id
            <if test="ids != null">
                and automessage_guide_repair_order.guide_department_id IN
                <foreach collection="ids" item="param"  open="(" close=")" separator=",">
                    #{param}
                </foreach>
            </if>
            ) as num
        from automessage_transaction_event
        <where>
            <if test="ids != null">