@ -98,8 +98,8 @@
INNER JOIN dim_grid g ON g.id = d.GRID_ID
INNER JOIN dim_agency c ON c.id = g.AGENCY_ID
WHERE
DATE_ID = #{dateId}
AND CUSTOMER_ID = #{customerId}
d.DATE_ID = #{dateId}
AND d.CUSTOMER_ID = #{customerId}
<if test="level == 'community'">
GROUP BY
c.id