|
|
@ -333,11 +333,11 @@ |
|
|
|
LEFT JOIN epmet_evaluation_index.screen_customer_agency ca ON ca.AGENCY_ID = cg.PARENT_AGENCY_ID AND ca.DEL_FLAG = 0 |
|
|
|
LEFT JOIN epmet_evaluation_index.screen_customer_agency ca2 ON ca2.AGENCY_ID = ca.PID AND ca2.DEL_FLAG = 0 |
|
|
|
WHERE cg.DEL_FLAG = 0 |
|
|
|
<if test="agencyId == null"> |
|
|
|
<if test="areaCode != null and areaCode != ''"> |
|
|
|
AND cg.AREA_CODE LIKE CONCAT(#{areaCode},'%') |
|
|
|
</if> |
|
|
|
<if test="areaCode == null"> |
|
|
|
AND cg.PARENT_AGENCY_ID = #{agencyId} |
|
|
|
<if test="agencyId != null and agencyId != ''"> |
|
|
|
AND cg.ALL_PARENT_IDS LIKE CONCAT(#{agencyId}, '%') |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|