Browse Source

完善层级查询

jwy
review512jwy@163.com 5 days ago
parent
commit
a631c5dddc
  1. 3
      data-center-business-dao/src/main/resources/mappers/ex/LevelMapperExt.xml

3
data-center-business-dao/src/main/resources/mappers/ex/LevelMapperExt.xml

@ -120,6 +120,9 @@
<if test="parentIdList != null and parentIdList.size() > 0"> <if test="parentIdList != null and parentIdList.size() > 0">
AND pa.id IN <foreach collection="parentIdList" item="item" open="(" separator="," close=")">#{item}</foreach> AND pa.id IN <foreach collection="parentIdList" item="item" open="(" separator="," close=")">#{item}</foreach>
</if> </if>
<if test="companyIdList != null and companyIdList.size() > 0">
AND base.company_id IN <foreach collection="companyIdList" item="item" open="(" separator="," close=")">#{item}</foreach>
</if>
</sql> </sql>
<!-- 分页查询级别列表 --> <!-- 分页查询级别列表 -->

Loading…
Cancel
Save