|
|
|
@ -76,8 +76,7 @@
|
|
|
|
|
|
|
|
|
|
<select id="selectChild" resultMap="BaseResultMap2" parameterType="com.emr.entity.Archive_Detail_Vo">
|
|
|
|
|
select
|
|
|
|
|
a.id, a.PDF_PATH, a.MasterID, a.UpLoadDateTime, a.AssortID, a.Source, a.SubAssort, a.Title, a.flag,
|
|
|
|
|
a.Sys,a.page_number,a.recover_pdf_path
|
|
|
|
|
a.id,a.UpLoadDateTime, a.AssortID, a.Source, a.SubAssort, a.Title, a.flag
|
|
|
|
|
from
|
|
|
|
|
archive_detail a
|
|
|
|
|
inner join
|
|
|
|
@ -164,11 +163,8 @@
|
|
|
|
|
</select>
|
|
|
|
|
<select id="detailByClo" resultMap="BaseResultMap2" parameterType="com.emr.entity.Archive_Detail_Vo">
|
|
|
|
|
select
|
|
|
|
|
t.MasterID,t.id,t.PDF_PATH,t.Source,CONVERT(varchar(100),t.UpLoadDateTime, 120) UpLoadDateTime,t.SubAssort,t.Title,t.flag,t.page_number,
|
|
|
|
|
z.assort_id,z.assort_name,z.assort_sort,z.print_flag
|
|
|
|
|
t.id,t.Source,CONVERT(varchar(100),t.UpLoadDateTime, 120) UpLoadDateTime,t.Title,t.flag
|
|
|
|
|
from archive_detail t
|
|
|
|
|
left join zd_assort z
|
|
|
|
|
on z.assort_id=t.AssortID
|
|
|
|
|
where 1=1
|
|
|
|
|
<if test="patientId != null">
|
|
|
|
|
and t.MasterID=#{patientId,jdbcType=VARCHAR}
|
|
|
|
@ -188,7 +184,7 @@
|
|
|
|
|
<if test="title != null and title != ''">
|
|
|
|
|
and t.title like '%'+#{title,jdbcType=VARCHAR}+'%'
|
|
|
|
|
</if>
|
|
|
|
|
ORDER BY z.assort_sort,t.Title,t.page_number,t.UpLoadDateTime
|
|
|
|
|
ORDER BY t.UpLoadDateTime
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!-- <select id="detailWithChildByClo" resultMap="BaseResultMap2" parameterType="com.emr.entity.Archive_Detail_Vo">-->
|
|
|
|
@ -259,8 +255,8 @@
|
|
|
|
|
|
|
|
|
|
<select id="detailWithChildByClo" resultMap="BaseResultMap2" parameterType="com.emr.entity.Archive_Detail_Vo">
|
|
|
|
|
select
|
|
|
|
|
t.MasterID,t.id,t.PDF_PATH,t.Source,CONVERT(varchar(100),t.UpLoadDateTime, 120)
|
|
|
|
|
UpLoadDateTime,t.SubAssort,t.Title,t.flag,t.page_number,t.AssortID
|
|
|
|
|
t.id,t.Source,CONVERT(varchar(100),t.UpLoadDateTime, 120)
|
|
|
|
|
UpLoadDateTime,t.Title,t.flag
|
|
|
|
|
from archive_detail t
|
|
|
|
|
<where>1=1
|
|
|
|
|
<if test="source != null and source != '' and source!='-1'">
|
|
|
|
@ -753,4 +749,7 @@
|
|
|
|
|
</if>
|
|
|
|
|
order by zd_assort.assort_sort
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getDetailInfo" resultType="com.emr.entity.Archive_Detail_Vo">
|
|
|
|
|
select Title,page_number,Source,flag,PDF_PATH from Archive_Detail where ID=#{detailId}
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|