| | |
| | | <if test="longSendTime != null"> |
| | | AND DATE_FORMAT(long_send_time,'%y%m%d') <= DATE_FORMAT(#{longSendTime},'%y%m%d') |
| | | </if> |
| | | // |
| | | <if test="deptOrDistrict == 1"> |
| | | <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size() > 0"> |
| | | AND leavehospitaldistrictcode IN |
| | |
| | | <if test="sendstate != null"> |
| | | AND sendstate = #{sendstate} |
| | | </if> |
| | | <if test="isFinished != null and isFinished != '0'"> |
| | | <if test="isFinished != null and isFinished == '1'"> |
| | | AND finishtime is not null |
| | | </if> |
| | | <if test="starttime != null">AND starttime >= #{starttime}</if> |
| | |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="sendstate != null and isFinished != '0'"> |
| | | <if test="sendstate != null"> |
| | | AND sendstate = #{sendstate} |
| | | </if> |
| | | <if test="isFinished != null"> |
| | | <if test="isFinished != null and isFinished == '1'"> |
| | | AND finishtime is not null |
| | | </if> |
| | | <if test="hospitaldistrictcodes != null and hospitaldistrictcodes.size() > 0"> |