|
@ -260,9 +260,17 @@ |
|
|
WHERE |
|
|
WHERE |
|
|
dm.del_flag = '0' |
|
|
dm.del_flag = '0' |
|
|
AND rd.del_flag = '0' |
|
|
AND rd.del_flag = '0' |
|
|
|
|
|
<choose> |
|
|
|
|
|
<when test="areaCode != null and areaCode != ''"> |
|
|
|
|
|
AND org.AREA_CODE LIKE concat(#{areaCode}, '%') |
|
|
|
|
|
</when> |
|
|
|
|
|
<otherwise> |
|
|
|
|
|
AND dm.all_parent_ids LIKE concat('%', #{agencyId}, '%') |
|
|
|
|
|
</otherwise> |
|
|
|
|
|
</choose> |
|
|
AND dm.org_type = 'grid' |
|
|
AND dm.org_type = 'grid' |
|
|
AND dm.month_id = #{monthId} |
|
|
AND dm.month_id = #{monthId} |
|
|
AND dm.all_parent_ids LIKE concat('%', #{agencyId}, '%') |
|
|
|
|
|
ORDER BY dm.index_total DESC |
|
|
ORDER BY dm.index_total DESC |
|
|
LIMIT #{topNum} |
|
|
LIMIT #{topNum} |
|
|
</select> |
|
|
</select> |
|
|