| | |
| | | sb.termination_case = 0 |
| | | <if test="infoid != null">AND sb.ID = #{infoid}</if> |
| | | <if test="inpatientno != null">AND sb.InpatientNo = #{inpatientno}</if> |
| | | <if test="urrentMedicalInstitution != null">AND sb.current_medical_institution = #{urrentMedicalInstitution}</if> |
| | | <if test="caseNo != null and caseNo != ''">AND sm.case_no = #{caseNo}</if> |
| | | <if test="donorno != null and donorno != ''">AND sm.DonorNo = #{donorno}</if> |
| | | <if test="diagnosisname != null and diagnosisname != ''">AND sm.DiagnosisName = #{diagnosisname}</if> |
| | | <if test="assessState != null and assessState != ''">AND sm.assess_state = #{assessState}</if> |
| | | <if test="assessTime != null ">AND sm.assess_time = #{assessTime}</if> |
| | | <if test="startAssessTime != null and endAssessTime != null ">and assess_time BETWEEN #{startAssessTime} and #{endAssessTime}</if> |
| | | <if test="name != null and name != ''">AND sb.Name LIKE CONCAT('%', #{name}, '%')</if> |
| | | <if test="sex != null and sex != ''">AND sb.Sex = #{sex}</if> |
| | | <if test="idcardno != null and idcardno != ''">AND sb.IDCardNo = #{idcardno}</if> |
| | |
| | | #{treatmenthospitalname} |
| | | </if> |
| | | </where> |
| | | order by sd.InpatientNo desc |
| | | |
| | | <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if> |
| | | |
| | | </select> |