@@ -61,7 +61,9 @@
</select>
<select id="areaList" resultType="com.poteviohealth.cgp.common.integrated.partner.model.AreaDTO">
- select id,parent as parentId,name,tree_path,region_area_code,(LENGTH(tree_path) - LENGTH(replace(tree_path,',',''))) as `level`
+ select id,parent as parentId,name,tree_path,
+ case when LENGTH(region_area_code)>9 then LEFT(region_area_code,9) else region_area_code end as region_area_code,
+ (LENGTH(tree_path) - LENGTH(replace(tree_path,',',''))) as `level`
from ${dbName}_common.f_area
where yn = 0
and parent is not null