|
|
|
@ -674,4 +674,21 @@
|
|
|
|
|
</if>
|
|
|
|
|
ORDER BY zd_assort.assort_sort
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectPdfPathMayError" resultMap="BaseResultMap" parameterType="com.emr.entity.Archive_Detail_Vo">
|
|
|
|
|
-- select * from Archive_Detail where PDF_PATH like 'Z:\upload_01\loadPdf\%' and flag = '0'
|
|
|
|
|
select * from Archive_Detail where PDF_PATH like 'D:\test0707%' and flag = '0'
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="startDateTo != null and startDateTo != '' and endDateTo != null and endDateTo != ''">
|
|
|
|
|
and UpLoadDateTime between CONVERT(VARCHAR(10),#{startDateTo,jdbcType=NCHAR},120) and
|
|
|
|
|
#{endDateTo,jdbcType=NCHAR}+ ' 23:59:59'
|
|
|
|
|
</when>
|
|
|
|
|
<when test="startDateTo != null and startDateTo != ''">
|
|
|
|
|
and UpLoadDateTime >= CONVERT(VARCHAR(10),#{startDateTo,jdbcType=NCHAR},120)
|
|
|
|
|
</when>
|
|
|
|
|
<when test="endDateTo != null and endDateTo != ''">
|
|
|
|
|
and UpLoadDateTime <= #{endDateTo,jdbcType=NCHAR}+ ' 23:59:59'
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
order by UpLoadDateTime desc
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|