| | |
| | | inner join service_donatebaseinfo b on b.id = d.InfoID |
| | | inner join base_organization o on b.TreatmentHospitalNo = o.OrganizationID |
| | | where b.del_flag=0 |
| | | AND d.transplantstate = "1" |
| | | AND d.del_flag=0 |
| | | AND d.TransplantTime IS NOT NULL |
| | | AND d.OrganNo != 'C00' |
| | | AND d.OrganNo != 'C69L' |
| | | AND d.OrganNo != 'C69R' |
| | | <if test="transplantstate != null">and d.transplantstate >= #{transplantstate}</if> |
| | | <if test="starttime != null">and d.TransplantTime >= #{starttime}</if> |
| | | <if test="endtime != null ">and d.TransplantTime <= #{endtime}</if> |
| | | <if test="city != null and city != ''">and o.City = #{city}</if> |