This commit is contained in:
shuo.wang
2024-10-13 10:38:58 +08:00
parent 3c57954256
commit 494b74bf0f
5 changed files with 49 additions and 9 deletions

View File

@@ -412,8 +412,13 @@
region_${enterpriseId}
where
deleted = 0
and
<foreach collection="regionIds" separator=" or " open="(" close=")" item="region" > region_path like concat("%/", #{region}, "/%")</foreach>
<if test="regionIds != null and regionIds.size() >0">
and
<foreach collection="regionIds" separator=" or " open="(" close=")" item="region">region_path like
concat("%/", #{region}, "/%")
</foreach>
</if>
</select>