| | |
| | | <where>sd.del_flag = 0 |
| | | <if test="terminationCase != null ">AND sd.termination_case = #{terminationCase}</if> |
| | | <if test="treatmentHospitalName != null ">AND sd.TreatmentHospitalName = #{treatmentHospitalName}</if> |
| | | <if test="name != null ">AND sd.Name = #{name}</if> |
| | | <if test="name != null ">AND sd.Name like concat('%', #{name}, '%')</if> |
| | | <if test="inpatientNo != null ">AND sd.InpatientNo = #{inpatientNo}</if> |
| | | <if test="startAge != null">AND sd.age >= #{startAge}</if> |
| | | <if test="endAge !=null">AND sd.age <= #{endAge} |