| | |
| | | </where> |
| | | |
| | | order by ReportTime desc |
| | | |
| | | <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if> |
| | | </select> |
| | | |
| | | <select id="getDonateNumberById" resultType="java.lang.String"> |
| | |
| | | <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} |