Browse Source

[Improvement-12700][Project]Improve the sql of listAuthorizedProjects (#12702)

3.2.1-prepare
Rick Cheng 1 year ago committed by GitHub
parent
commit
29a9888167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProjectMapper.xml

6
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProjectMapper.xml

@ -183,6 +183,12 @@
and dp.id in (select project_id from t_ds_relation_project_user where user_id=#{userId}
union select id as project_id from t_ds_project where user_id=#{userId})
</if>
<if test="projectsIds != null and projectsIds.size() > 0">
and dp.id in
<foreach item="id" index="index" collection="projectsIds" open="(" separator="," close=")">
#{id}
</foreach>
</if>
</select>
<select id="queryAllProjectForDependent" resultType="org.apache.dolphinscheduler.dao.entity.Project">

Loading…
Cancel
Save