|
|
@ -101,14 +101,15 @@ |
|
|
|
PARENT_AGENCY_ID AS parentId |
|
|
|
FROM |
|
|
|
fact_index_agency_score fics |
|
|
|
LEFT JOIN screen_customer_agency sca ON sca.AGENCY_ID = fics.PARENT_AGENCY_ID |
|
|
|
WHERE |
|
|
|
fics.del_flag = '0' |
|
|
|
AND fics.AGENCY_ID != '0' |
|
|
|
AND fics.customer_id = #{customerId} |
|
|
|
AND fics.month_id = #{monthId} |
|
|
|
AND fics.index_code = #{indexCode} |
|
|
|
AND sca.level = 'district' |
|
|
|
AND fics.customer_id = #{customerId} |
|
|
|
AND fics.month_id = #{monthId} |
|
|
|
AND fics.index_code = #{indexCode} |
|
|
|
AND fics.DATA_TYPE = #{dataType} |
|
|
|
GROUP BY fics.parent_agency_id |
|
|
|
GROUP BY fics.parent_agency_id |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|