| | |
| | | `service_donationwitness`.`update_by` AS `updateby`, |
| | | `service_donationwitness`.`update_time` AS `updatetime` |
| | | FROM |
| | | |
| | | `service_donatebaseinfo` |
| | | LEFT JOIN `service_donationwitness` ON |
| | | `service_donatebaseinfo`.`ID` = `service_donationwitness`.`InfoID` |
| | | LEFT JOIN `base_organization` ON |
| | | `base_organization`.`OrganizationID` = `service_donatebaseinfo`.`TreatmentHospitalNo` |
| | | |
| | | <where> |
| | | service_donationwitness.del_flag=0 |
| | | and service_donatebaseinfo.del_flag=0 |
| | | <if test="donorno != null and donorno != ''">and `service_donatebaseinfo`.`DonorNo` = #{donorno}</if> |
| | | <if test="name != null and name != ''">and `service_donatebaseinfo`.`Name` like concat('%', #{name}, '%') |
| | | </if> |