| | |
| | | <if test="casePersonAge != null ">and case_person_age = #{casePersonAge}</if> |
| | | <if test="filterDrname != null ">and filter_drname = #{filterDrname}</if> |
| | | <if test="filterDrcode != null ">and filter_drcode = #{filterDrcode}</if> |
| | | <if test="createTimeStart != null"> |
| | | AND date_format(create_time,'%y%m%d') >= date_format(#{createTimeStart},'%y%m%d') |
| | | </if> |
| | | <if test="createTimeEnd != null"> |
| | | AND date_format(create_time,'%y%m%d') <= date_format(#{createTimeEnd},'%y%m%d ') |
| | | </if> |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | </select> |
| | | |
| | |
| | | <if test="idcardno != null and idcardno != ''">and idcardno = #{idcardno}</if> |
| | | <if test="telcode != null and telcode != ''">and telcode = #{telcode}</if> |
| | | <if test="campusid != null and campusid != ''">and campusid = #{campusid}</if> |
| | | <if test="createTimeStart != null"> |
| | | AND date_format(a.create_time,'%y%m%d') >= date_format(#{createTimeStart},'%y%m%d') |
| | | </if> |
| | | <if test="createTimeEnd != null"> |
| | | AND date_format(a.create_time,'%y%m%d') <= date_format(#{createTimeEnd},'%y%m%d ') |
| | | </if> |
| | | <if test="tagIds != null and tagIds != ''">and c.tagid in |
| | | <foreach collection="tagIds" item="tagId" open="(" separator="," close=")"> |
| | | #{tagId} |
| | |
| | | #{tagId} |
| | | </foreach> |
| | | </if> |
| | | <if test="createTimeStart != null"> |
| | | AND date_format(a.create_time,'%y%m%d') >= date_format(#{createTimeStart},'%y%m%d') |
| | | </if> |
| | | <if test="createTimeEnd != null"> |
| | | AND date_format(a.create_time,'%y%m%d') <= date_format(#{createTimeEnd},'%y%m%d ') |
| | | </if> |
| | | order by a.update_time desc |
| | | <if test="pn != null and ps != null">limit ${pn},${ps}</if> |
| | | |
| | |
| | | #{pid} |
| | | </foreach> |
| | | </if> |
| | | <if test="createTimeStart != null"> |
| | | AND date_format(a.create_time,'%y%m%d') >= date_format(#{createTimeStart},'%y%m%d') |
| | | </if> |
| | | <if test="createTimeEnd != null"> |
| | | AND date_format(a.create_time,'%y%m%d') <= date_format(#{createTimeEnd},'%y%m%d ') |
| | | </if> |
| | | <if test="isFilter == true"> |
| | | AND NOT exists ( SELECT 1 FROM pat_filterlist f where d.patid=f.patid) |
| | | </if> |
| | |
| | | #{pid} |
| | | </foreach> |
| | | </if> |
| | | <if test="createTimeStart != null"> |
| | | AND date_format(a.create_time,'%y%m%d') >= date_format(#{createTimeStart},'%y%m%d') |
| | | </if> |
| | | <if test="createTimeEnd != null"> |
| | | AND date_format(a.create_time,'%y%m%d') <= date_format(#{createTimeEnd},'%y%m%d ') |
| | | </if> |
| | | <if test="isFilter == true"> |
| | | AND NOT exists ( SELECT 1 FROM pat_filterlist f where d.patid=f.patid) |
| | | </if> |
| | |
| | | <if test="pid != null and pid != ''">and a.id = #{id}</if> |
| | | <if test="telcode != null and telcode != ''">and a.telcode = #{telcode}</if> |
| | | <if test="notrequiredFlag != null and notrequiredFlag != ''">and a.notrequired_flag = #{notrequiredFlag} |
| | | </if> |
| | | <if test="createTimeStart != null"> |
| | | AND date_format(a.create_time,'%y%m%d') >= date_format(#{createTimeStart},'%y%m%d') |
| | | </if> |
| | | <if test="createTimeEnd != null"> |
| | | AND date_format(a.create_time,'%y%m%d') <= date_format(#{createTimeEnd},'%y%m%d ') |
| | | </if> |
| | | <if test="hospitalname != null and hospitalname != ''"> |
| | | AND d.hospitalname = #{hospitalname} |
| | |
| | | #{pid} |
| | | </foreach> |
| | | </if> |
| | | <if test="createTimeStart != null"> |
| | | AND date_format(a.create_time,'%y%m%d') >= date_format(#{createTimeStart},'%y%m%d') |
| | | </if> |
| | | <if test="createTimeEnd != null"> |
| | | AND date_format(a.create_time,'%y%m%d') <= date_format(#{createTimeEnd},'%y%m%d ') |
| | | </if> |
| | | <if test="isFilter == true"> |
| | | AND NOT exists ( SELECT 1 FROM pat_filterlist f where d.patid=f.patid) |
| | | </if> |