| | |
| | | LEFT JOIN service_relativesconfirmation sr ON sd.ID = sr.InfoID and sd.del_flag = 0 |
| | | AND sr.del_flag = 0 |
| | | <where> |
| | | sd.termination_case = 0 |
| | | <if test="infoid != null">AND sd.ID = #{infoid}</if> |
| | | <if test="recordstate != null and recordstate != ''">AND sd.RecordState = #{recordstate}</if> |
| | | <if test="caseNo != null and caseNo != ''">AND sd.case_no = #{caseNo}</if> |
| | |
| | | and sr.SignDate <= #{endSigndate} |
| | | </if> |
| | | </where> |
| | | order by sd.InpatientNo desc |
| | | order by sd.ReportTime desc |
| | | <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if> |
| | | </select> |
| | | |