|
|
@ -179,11 +179,12 @@ |
|
|
|
sca.pid AS parentId |
|
|
|
FROM |
|
|
|
fact_index_community_score fics |
|
|
|
LEFT JOIN screen_customer_agency sca ON sca.AGENCY_ID = fics.AGENCY_ID |
|
|
|
LEFT JOIN screen_customer_agency sca ON sca.AGENCY_ID = fics.AGENCY_ID |
|
|
|
WHERE |
|
|
|
fics.del_flag = '0' |
|
|
|
AND sca.DEL_FLAG = 0 |
|
|
|
AND sca.AREA_CODE LIKE CONCAT(#{areaCode},'%') |
|
|
|
AND sca.AREA_CODE != #{areaCode} |
|
|
|
AND sca.`LEVEL` = 'community' |
|
|
|
AND fics.month_id = #{monthId} |
|
|
|
AND fics.index_code = #{indexCode} |
|
|
|