| | |
| | | AND NOT exists ( SELECT 1 FROM pat_filterlist f where d.patid=f.patid) |
| | | </if> |
| | | </where> |
| | | order by a.update_time desc |
| | | <if test="pn != null and ps != null"> limit ${pn},${ps} </if> |
| | | -- order by a.update_time desc |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveInfoByOuthosp" parameterType="com.smartor.domain.PatArchiveReq" |
| | |
| | | AND NOT exists ( SELECT 1 FROM pat_filterlist f where d.patid=f.patid) |
| | | </if> |
| | | </where> |
| | | order by a.update_time desc |
| | | <if test="pn != null and ps != null"> limit ${pn},${ps} </if> |
| | | -- order by a.update_time desc |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveInfoByPhysical" parameterType="com.smartor.domain.PatArchiveReq" |
| | |
| | | AND NOT exists ( SELECT 1 FROM pat_filterlist f where d.patid=f.patid) |
| | | </if> |
| | | </where> |
| | | order by a.update_time desc |
| | | <if test="pn != null and ps != null"> limit ${pn},${ps} </if> |
| | | -- order by a.update_time desc |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveInfoByInhospQC" parameterType="com.smartor.domain.PatArchiveReq" |
| | |
| | | <if test="drcode != null"> |
| | | AND d.drcode = #{drcode} |
| | | </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="allhosp != null and allhosp == 1 ">and d.endtime is null</if> |
| | | <if test="allhosp != null and allhosp == 4 ">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 ) as tmp order by endtime desc |
| | | <if test="pn != null and ps != null"> limit ${pn},${ps} </if> |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | ) as tmp |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveInfoByOuthospQC" parameterType="com.smartor.domain.PatArchiveReq" |
| | |
| | | AND NOT exists ( SELECT 1 FROM pat_filterlist f where d.patid=f.patid) |
| | | </if> |
| | | </where> |
| | | order by a.update_time desc |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveInfoByPhysicalQC" parameterType="com.smartor.domain.PatArchiveReq" |
| | |
| | | AND NOT exists ( SELECT 1 FROM pat_filterlist f where d.patid=f.patid) |
| | | </if> |
| | | </where> |
| | | order by a.update_time desc |
| | | -- order by a.update_time desc |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | </select> |
| | | </mapper> |