根据三方区域类型获取区域列表 0-根 1=大区 2=战区 3=小区(督导区 4=门店

This commit is contained in:
wangxiaopeng
2024-03-29 11:41:02 +08:00
parent 967afb5352
commit b4b5ad4ec4
7 changed files with 80 additions and 4 deletions

View File

@@ -17,7 +17,8 @@
region_type as regionType,
region_path as regionPath,
deleted as deleted,
third_dept_id as thirdDeptId
third_dept_id as thirdDeptId,
third_region_type as thirdRegionType
</sql>
<select id="getRegionByRegionIdsForMap" resultType="com.cool.store.entity.RegionDO">
@@ -332,4 +333,17 @@
</select>
<select id="listByThirdRegionType" resultType="com.cool.store.entity.RegionDO">
select <include refid="fields"/>
from region_${enterpriseId}
where deleted = 0
<if test="parentId != null">
and parent_id= #{parentId}
</if>
<if test="thirdRegionType != null and thirdRegionType != ''">
and third_region_type = #{thirdRegionType}
</if>
</select>
</mapper>