| | |
| | | <if test="endtime != null"> |
| | | AND d.endtime = #{endtime} |
| | | </if> |
| | | <if test="cry != null and cry == 0 ">and d.endtime is null</if> |
| | | <if test="cry != null and cry == 1 ">and d.endtime is not null</if> |
| | | <if test="visitno != null and visitno != ''"> |
| | | AND d.inhospno = #{visitno} |
| | | </if> |
| | |
| | | AND NOT exists ( SELECT 1 FROM pat_filterlist f where d.patid=f.patid) |
| | | </if> |
| | | </where> |
| | | order by a.id,a.update_time desc ) order by endtime desc |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveInfoByOuthospQC" parameterType="com.smartor.domain.PatArchiveReq" |