根据三方区域类型获取区域列表 0-根 1=大区 2=战区 3=小区(督导区 4=门店
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user