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