|
|
|
@ -116,6 +116,8 @@
|
|
|
|
|
from zd_assort z
|
|
|
|
|
left join archive_detail t
|
|
|
|
|
on z.assort_id=t.AssortID
|
|
|
|
|
left join archive_record_name_info
|
|
|
|
|
on archive_record_name_info.record_name = t.Title AND archive_record_name_info.effective = 1
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
INNER JOIN <include refid="selectPowerAssort"></include> emr_user_reader
|
|
|
|
|
ON z.assort_id = emr_user_reader.assort_id
|
|
|
|
@ -142,7 +144,7 @@
|
|
|
|
|
t.UpLoadDateTime ${order}
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
z.assort_sort,t.UpLoadDateTime
|
|
|
|
|
z.assort_sort,archive_record_name_info.record_sort,t.UpLoadDateTime
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
</select>
|
|
|
|
@ -179,13 +181,15 @@
|
|
|
|
|
select
|
|
|
|
|
PDF_PATH,archive_detail.AssortID,archive_detail.title
|
|
|
|
|
from archive_detail
|
|
|
|
|
left join archive_record_name_info
|
|
|
|
|
on archive_record_name_info.record_name = archive_detail.Title AND archive_record_name_info.effective = 1
|
|
|
|
|
left join zd_assort
|
|
|
|
|
on zd_assort.assort_id = archive_detail.AssortID
|
|
|
|
|
where 1=1 and flag=0
|
|
|
|
|
<if test="title != null and title!=''">
|
|
|
|
|
and id in (${title})
|
|
|
|
|
</if>
|
|
|
|
|
order by zd_assort.assort_sort,archive_detail.UpLoadDateTime
|
|
|
|
|
order by zd_assort.assort_sort,archive_record_name_info.record_sort,archive_detail.UpLoadDateTime
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByColm" parameterType="com.emr.entity.Archive_Detail" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
@ -393,6 +397,8 @@
|
|
|
|
|
archive_detail.Title
|
|
|
|
|
FROM
|
|
|
|
|
archive_detail
|
|
|
|
|
left join archive_record_name_info
|
|
|
|
|
on archive_record_name_info.record_name = archive_detail.Title AND archive_record_name_info.effective = 1
|
|
|
|
|
LEFT JOIN zd_assort ON archive_detail.AssortID = zd_assort.assort_id
|
|
|
|
|
WHERE
|
|
|
|
|
archive_detail.flag != 1
|
|
|
|
@ -402,15 +408,17 @@
|
|
|
|
|
<if test="assortIds != null and assortIds != ''">
|
|
|
|
|
AND archive_detail.AssortID in (${assortIds})
|
|
|
|
|
</if>
|
|
|
|
|
ORDER BY zd_assort.assort_sort
|
|
|
|
|
ORDER BY zd_assort.assort_sort,archive_record_name_info.record_sort,archive_detail.UpLoadDateTime
|
|
|
|
|
</select>
|
|
|
|
|
<!--按ids集合查询pdf路径-->
|
|
|
|
|
<select id="selectPdfPathByIds" resultMap="BaseResultMap">
|
|
|
|
|
select PDF_PATH,archive_detail.AssortID,archive_detail.title from archive_detail
|
|
|
|
|
inner join zd_assort
|
|
|
|
|
on archive_detail.AssortID = zd_assort.assort_id
|
|
|
|
|
left join archive_record_name_info
|
|
|
|
|
on archive_record_name_info.record_name = archive_detail.Title AND archive_record_name_info.effective = 1
|
|
|
|
|
where MasterID = #{masterId} and archive_detail.AssortID in (${detailIds}) and flag != 1
|
|
|
|
|
order by zd_assort.assort_sort,archive_detail.UpLoadDateTime
|
|
|
|
|
order by zd_assort.assort_sort,archive_record_name_info.record_sort,archive_detail.UpLoadDateTime
|
|
|
|
|
</select>
|
|
|
|
|
<!--按查询按masterId分组查询assortId分类且需要完整性校验的集合-->
|
|
|
|
|
<select id="selectAssortIdsByMasterIds" resultMap="BaseResultMap" parameterType="java.lang.String">
|
|
|
|
|