|
|
@@ -122,8 +122,11 @@
|
|
|
<select id="selectAllList" resultType="cn.tr.module.smart.common.dto.BizMissionDocSquareDTO">
|
|
|
select
|
|
|
( SELECT CASE WHEN EXISTS ( select id from biz_mission_doc bmd where bmd.square_doc_id = bmds.id) THEN 1 ELSE 0 END ) AS isPull,
|
|
|
+ st.name AS hospitalName,
|
|
|
+ st.avatar AS tenantAvatar,
|
|
|
<include refid="bmdsColumn"/>
|
|
|
from biz_mission_doc_square bmds
|
|
|
+ left join sys_tenant st on bmds.tenant_id = st.id
|
|
|
<where>
|
|
|
and bmds.deleted = 0
|
|
|
<if test="query.phase != null and query.phase != ''">
|