|
|
@ -162,13 +162,11 @@ |
|
|
|
|
|
|
|
|
|
|
|
<select id="queryAllProject" resultType="org.apache.dolphinscheduler.dao.entity.Project"> |
|
|
|
<select id="queryAllProject" resultType="org.apache.dolphinscheduler.dao.entity.Project"> |
|
|
|
select |
|
|
|
select |
|
|
|
<include refid="baseSqlV2"> |
|
|
|
<include refid="baseSql"/> |
|
|
|
<property name="alias" value="p"/> |
|
|
|
from t_ds_project |
|
|
|
</include> |
|
|
|
where 1 = 1 |
|
|
|
from t_ds_project p |
|
|
|
|
|
|
|
<if test="userId != 0"> |
|
|
|
<if test="userId != 0"> |
|
|
|
right join t_ds_relation_project_user rpu on p.id = rpu.project_id |
|
|
|
and user_id = #{userId} |
|
|
|
where rpu.user_id = #{userId} |
|
|
|
|
|
|
|
</if> |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|