feat:事项
This commit is contained in:
@@ -126,6 +126,7 @@
|
||||
|
||||
<select id="getStoreAreaList" resultType="com.cool.store.dto.store.StoreAreaDTO">
|
||||
select
|
||||
a.store_num as storeCode,
|
||||
a.store_name as storeName,
|
||||
a.store_id as storeId,
|
||||
a.region_path as regionPath,
|
||||
@@ -155,4 +156,20 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="listStoreByRegionPathList" resultType="com.cool.store.dto.store.StoreAreaDTO">
|
||||
select
|
||||
store_name as storeName,
|
||||
store_id as storeId,
|
||||
region_path as regionPath,
|
||||
region_id as regionId,
|
||||
region_id as areaId
|
||||
from store_${enterpriseId}
|
||||
where is_delete = 'effective'
|
||||
<if test="regionPathList != null and regionPathList.size >0 ">
|
||||
<foreach collection="regionPathList" item="regionPath" separator=" or " open="and (" close=" )">
|
||||
region_path like concat(#{regionPath}, '%')
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user