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