|
@ -1033,7 +1033,13 @@ |
|
|
<if test='endTime != "" and endTime != null '> |
|
|
<if test='endTime != "" and endTime != null '> |
|
|
AND date_id <![CDATA[<=]]> #{endTime} |
|
|
AND date_id <![CDATA[<=]]> #{endTime} |
|
|
</if> |
|
|
</if> |
|
|
GROUP BY date_id, agency_id |
|
|
<!-- 平阴的三个街道的数据在表里同一天会存在两条,一条是上报的一条是小程序统计的,所以查询时需要sum,此处就得分组 --> |
|
|
|
|
|
<if test='dataType == "agency"'> |
|
|
|
|
|
GROUP BY date_id, agency_id |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='dataType == "grid"'> |
|
|
|
|
|
GROUP BY date_id, grid_id |
|
|
|
|
|
</if> |
|
|
ORDER BY date_id ASC |
|
|
ORDER BY date_id ASC |
|
|
</if> |
|
|
</if> |
|
|
<if test='sourceType != "" and sourceType == "end" and endTime != "" and endTime != null '> |
|
|
<if test='sourceType != "" and sourceType == "end" and endTime != "" and endTime != null '> |
|
@ -1041,7 +1047,13 @@ |
|
|
AND date_id <![CDATA[>=]]> #{startTime} |
|
|
AND date_id <![CDATA[>=]]> #{startTime} |
|
|
</if> |
|
|
</if> |
|
|
AND date_id <![CDATA[<=]]> #{endTime} |
|
|
AND date_id <![CDATA[<=]]> #{endTime} |
|
|
GROUP BY date_id, agency_id |
|
|
<!-- 平阴的三个街道的数据在表里同一天会存在两条,一条是上报的一条是小程序统计的,所以查询时需要sum,此处就得分组 --> |
|
|
|
|
|
<if test='dataType == "agency"'> |
|
|
|
|
|
GROUP BY date_id, agency_id |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='dataType == "grid"'> |
|
|
|
|
|
GROUP BY date_id, grid_id |
|
|
|
|
|
</if> |
|
|
ORDER BY date_id DESC |
|
|
ORDER BY date_id DESC |
|
|
</if> |
|
|
</if> |
|
|
<choose> |
|
|
<choose> |
|
|