| | |
| | | <select id="selectPatArchiveList" parameterType="com.smartor.domain.PatArchive" resultMap="PatArchiveResult"> |
| | | <include refid="selectPatArchiveVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | |
| | | a.case_person_age |
| | | from pat_archive a,pat_archivetag b ,base_tag c |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND a.del_flag=0 and |
| | | AND a.id = b.patid and b.tagid = c.tagid |
| | |
| | | pat_archive a |
| | | LEFT JOIN pat_archivetag b ON a.id = b.patid AND b.del_flag = 0 |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND a.del_flag = 0 |
| | | and a.orgid = #{orgid} |
| | |
| | | ) t ON t.patid = |
| | | d.patid |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND d.del_flag != 1 |
| | | AND a.del_flag != 1 |
| | |
| | | ) t ON t.patid = |
| | | d.patid |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND d.del_flag != 1 |
| | | AND a.del_flag != 1 |
| | |
| | | ) t ON t.patid = |
| | | d.patid |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND d.del_flag != 1 |
| | | AND a.del_flag != 1 |
| | |
| | | ) t ON t.patid = |
| | | d.patid |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND d.del_flag != 1 |
| | | AND a.del_flag != 1 |
| | |
| | | ) t ON t.patid = |
| | | d.patid |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND d.del_flag != 1 |
| | | AND a.del_flag != 1 |
| | |
| | | ) t ON t.patid = |
| | | d.patid |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND d.del_flag != 1 |
| | | AND a.del_flag != 1 |