Browse Source

fix bug of extra 'and' in ResourceMapper.xml (#6876)

Co-authored-by: ding <dingpf@helowin>
2.0.7-release
DingPengfei 3 years ago committed by lenboo
parent
commit
4015448441
  1. 2
      dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ResourceMapper.xml

2
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ResourceMapper.xml

@ -63,7 +63,7 @@
<if test="userId != 0"> <if test="userId != 0">
and ( and (
<if test="resIds != null and resIds.size() > 0"> <if test="resIds != null and resIds.size() > 0">
and d.id in d.id in
<foreach collection="resIds" item="i" open="(" close=") or" separator=","> <foreach collection="resIds" item="i" open="(" close=") or" separator=",">
#{i} #{i}
</foreach> </foreach>

Loading…
Cancel
Save