forked from gzzfw/backEnd/gz-dyh

huangh
2024-10-28 1f5f3c84cb9b35d65caf576c0d46d26bda291875
dyh-service/dyh-mediate/src/main/java/cn/huge/module/analysis/dao/mapper/xml/AnalysisMapper.xml
@@ -233,9 +233,17 @@
        <if test="groupByRoad != null and groupByRoad != ''">
            road_name as groupByType,
        </if>
        <if test="groupByTime != null and groupByTime != '' and groupByTime == 'month'">
        <if test="groupByTime != null and groupByTime != ''">
            <if test="groupByTime == 'day'">
                DATE_FORMAT(ci.create_time, '%Y-%m-%d') as groupByType,
            </if>
            <if test="groupByTime == 'month'">
            DATE_FORMAT(ci.create_time, '%Y-%m') as groupByType,
        </if>
            <if test="groupByTime == 'year'">
                DATE_FORMAT(ci.create_time, '%Y') as groupByType,
            </if>
        </if>
        COUNT(DISTINCT fc.case_id) as repeatCount
        FROM FilteredCases fc
        JOIN gzdyh_test.dyh_case_info ci ON fc.case_id = ci.id