This commit is contained in:
shuo.wang
2024-10-12 22:35:09 +08:00
parent 892ba5f65e
commit 3c57954256
3 changed files with 20 additions and 0 deletions

View File

@@ -405,6 +405,16 @@
where deleted = 0
and syn_ding_dept_id = #{synDingDeptId}
</select>
<select id="getSubRegionIdsByRegionIdList" resultType="java.lang.Long">
select
id
from
region_${enterpriseId}
where
deleted = 0
and
<foreach collection="regionIds" separator=" or " open="(" close=")" item="region" > region_path like concat("%/", #{region}, "/%")</foreach>
</select>
</mapper>