| | |
| | | a.leavehospitaldistrictcode, |
| | | a.leavehospitaldistrictname, |
| | | a.diagname |
| | | <if test="serviceType != null and serviceType != ''and serviceType != '2'and serviceType != '3'">order by |
| | | a.long_send_time desc |
| | | order by a.visit_time desc |
| | | <if test="serviceType != null and serviceType != ''and serviceType != '2'and serviceType != '3'"> |
| | | ,a.long_send_time desc |
| | | </if> |
| | | <if test="serviceType != null and serviceType != ''and serviceType == '2'">order by a.endtime desc</if> |
| | | <if test="serviceType != null and serviceType != ''and serviceType == '3'">order by a.admindate desc</if> |
| | | -- order by update_time desc,id desc |
| | | <if test="serviceType != null and serviceType != ''and serviceType == '2'">,a.endtime desc</if> |
| | | <if test="serviceType != null and serviceType != ''and serviceType == '3'">,a.admindate desc</if> |
| | | |
| | | |
| | | </select> |
| | | |
| | |
| | | <if test="suggest != null ">suggest=#{suggest},</if> |
| | | <if test="inhospid != null ">inhospid=#{inhospid},</if> |
| | | <if test="visitTime != null ">visitTime=#{visitTime},</if> |
| | | <if test="delFlag != null ">del_flag=#{delFlag},</if> |
| | | </trim> |
| | | <where> |
| | | <if test="patid != null ">patid=#{patid}</if> |