forked from github/dataease
fix(血源分析): 优化血源关系查询结果
修复 Excel 数据集的引用未正确显示,去除查询结果中重复的部分。
This commit is contained in:
parent
597f1c0eef
commit
e262c93ae2
@ -234,6 +234,7 @@
|
|||||||
group by sa.auth_source
|
group by sa.auth_source
|
||||||
) pg_auth on pg_auth.id = pg.id
|
) pg_auth on pg_auth.id = pg.id
|
||||||
where dt.id=#{datasetId,jdbcType=VARCHAR}
|
where dt.id=#{datasetId,jdbcType=VARCHAR}
|
||||||
|
group by id,panel_id
|
||||||
order by id
|
order by id
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
@ -239,6 +239,7 @@
|
|||||||
group by sa.auth_source
|
group by sa.auth_source
|
||||||
) pg_auth on pg_auth.id = pg.id
|
) pg_auth on pg_auth.id = pg.id
|
||||||
where ds.id=#{datasourceId,jdbcType=VARCHAR}
|
where ds.id=#{datasourceId,jdbcType=VARCHAR}
|
||||||
|
group by id,panel_id
|
||||||
order by id
|
order by id
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
@ -285,7 +285,7 @@
|
|||||||
)
|
)
|
||||||
group by sa.auth_source
|
group by sa.auth_source
|
||||||
) dt_auth on dt.id = dt_auth.id
|
) dt_auth on dt.id = dt_auth.id
|
||||||
join datasource ds on dt.data_source_id = ds.id
|
left join datasource ds on dt.data_source_id = ds.id
|
||||||
left join
|
left join
|
||||||
(
|
(
|
||||||
select
|
select
|
||||||
@ -318,7 +318,8 @@
|
|||||||
group by sa.auth_source
|
group by sa.auth_source
|
||||||
) ds_auth on ds_auth.id = ds.id
|
) ds_auth on ds_auth.id = ds.id
|
||||||
where pg.id=#{panelId,jdbcType=VARCHAR}
|
where pg.id=#{panelId,jdbcType=VARCHAR}
|
||||||
group by dt.id
|
group by id,dt_id
|
||||||
|
order by id
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="listPanelByUser" resultType="io.dataease.plugins.common.base.domain.PanelGroup"
|
<select id="listPanelByUser" resultType="io.dataease.plugins.common.base.domain.PanelGroup"
|
||||||
|
Loading…
Reference in New Issue
Block a user