Browse Source

大屏统计

qin 1 năm trước cách đây
mục cha
commit
125bbf669a
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/main/resources/mapper/statistics/OrderMapper.xml

+ 3 - 1
src/main/resources/mapper/statistics/OrderMapper.xml

@@ -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)&gt;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