| | |
| | | <if test="groupByRoad != null and groupByRoad != ''"> |
| | | road_name as groupByType, |
| | | </if> |
| | | <if test="groupByTime != null and groupByTime != '' and groupByTime == 'month'"> |
| | | DATE_FORMAT(ci.create_time, '%Y-%m') as groupByType, |
| | | <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 |