| | |
| | | sd.treatmenthospitalno AS treatmenthospitalno, |
| | | sd.DonorNo AS donorno, |
| | | sd.case_no AS caseNo, |
| | | sd.extracontent AS extracontent, |
| | | sd.DonationCategory as donationcategory, |
| | | sd.NAME AS name, |
| | | sd.RecordState AS recordstate, |
| | |
| | | <if test="name != null and name != ''">and sd.Name like concat('%', #{name}, '%')</if> |
| | | <if test="inpatientno != null and inpatientno != ''">and sd.inpatientno = #{inpatientno}</if> |
| | | <if test="donorno != null and donorno != ''">and sdc.DonorNo = #{donorno}</if> |
| | | <if test="infoid != null">and sdc.InfoID = #{infoid}</if> |
| | | <if test="infoid != null">and sd.id = #{infoid}</if> |
| | | </where> |
| | | <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if> |
| | | </select> |