|
|
@ -82,16 +82,17 @@ |
|
|
|
|
|
|
|
<!-- 根据keys查询project --> |
|
|
|
<select id="queryProjectList" resultType="com.epmet.dataaggre.dto.epmettduck.result.TDuckListResultDTO"> |
|
|
|
select * from pr_user_project |
|
|
|
where del_flag = 0 |
|
|
|
AND status = #{status} |
|
|
|
AND client = #{client} |
|
|
|
AND `key` in ( |
|
|
|
select up.*,ps.is_everyone_write_once_uid from pr_user_project up |
|
|
|
LEFT JOIN pr_user_project_setting ps ON (ps.project_key = up.`key` AND ps.del_flag = 0) |
|
|
|
where up.del_flag = 0 |
|
|
|
AND up.status = #{status} |
|
|
|
AND up.client = #{client} |
|
|
|
AND up.`key` in ( |
|
|
|
<foreach collection="keys" item="key" separator=","> |
|
|
|
#{key} |
|
|
|
</foreach> |
|
|
|
) |
|
|
|
ORDER BY created_time DESC |
|
|
|
ORDER BY up.created_time DESC |
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |