| | |
| | | resultMap="PatArchiveOutResult"> |
| | | <include refid="selectPatArchiveOutVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="patientno != null and patientno != ''">and patientno = #{patientno}</if> |
| | | <if test="pattype != null and pattype != ''">and pattype = #{pattype}</if> |
| | |
| | | from ( |
| | | SELECT "住院" as name1, count(1) as count FROM `pat_med_inhosp` |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag = 0 and endtime = null |
| | | <if test="deptIds != null ">and deptId in |
| | |
| | | union |
| | | select "出院" name1, count(1) as count FROM `pat_med_inhosp` |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 and endtime != null |
| | | <if test="deptIds != null ">and deptId in |