| | |
| | | a.create_time, |
| | | a.isupload, |
| | | a.upload_time, |
| | | d.leavehospitaldistrictcode AS leavehospitaldistrictcode, |
| | | d.leavehospitaldistrictname AS leavehospitaldistrictname, |
| | | a.pattype |
| | | from pat_med_outhosp d JOIN pat_archive a ON a.id = d.patid |
| | | LEFT JOIN ( SELECT patid, GROUP_CONCAT( tagname ) AS tagname FROM pat_archivetag GROUP BY patid ) t ON t.patid = |
| | |
| | | </if> |
| | | <if test="deptname != null and deptname != ''"> |
| | | and d.deptname LIKE concat('%', #{deptname}, '%') |
| | | </if> |
| | | <if test="leavehospitaldistrictname != null and leavehospitaldistrictname != ''"> |
| | | and d.leavehospitaldistrictname LIKE concat('%', #{leavehospitaldistrictname}, '%') |
| | | </if> |
| | | <if test="drname != null and drname != ''"> |
| | | AND d.drname LIKE concat('%',#{drname}, '%') |
| | |
| | | a.create_time, |
| | | a.isupload, |
| | | a.upload_time, |
| | | d.leavehospitaldistrictcode AS leavehospitaldistrictcode, |
| | | d.leavehospitaldistrictname AS leavehospitaldistrictname, |
| | | a.pattype |
| | | from pat_med_outhosp d JOIN pat_archive a ON a.id = d.patid |
| | | LEFT JOIN ( SELECT patid, GROUP_CONCAT( tagname ) AS tagname FROM pat_archivetag GROUP BY patid ) t ON t.patid = |
| | |
| | | </if> |
| | | <if test="deptname != null and deptname != ''"> |
| | | and d.deptname LIKE concat('%', #{deptname}, '%') |
| | | </if> |
| | | <if test="leavehospitaldistrictname != null and leavehospitaldistrictname != ''"> |
| | | and d.leavehospitaldistrictname LIKE concat('%', #{leavehospitaldistrictname}, '%') |
| | | </if> |
| | | <if test="drname != null and drname != ''"> |
| | | AND d.drname LIKE concat('%',#{drname}, '%') |