| | |
| | | service_ethicalreviewopinions.start_time, |
| | | service_ethicalreviewopinions.end_time, |
| | | service_ethicalreviewopinions.expert_type, |
| | | c.file_patch, |
| | | service_ethicalreviewopinions.sigin as sigin |
| | | FROM service_donatebaseinfo |
| | | LEFT JOIN service_ethicalreviewopinions |
| | | ON service_donatebaseinfo.ID = service_ethicalreviewopinions.InfoID |
| | | LEFT JOIN base_organization ON |
| | | base_organization.OrganizationID = service_donatebaseinfo.TreatmentHospitalNo |
| | | |
| | | left join service_ethicalreviewinitiate c on c.InfoID=service_donatebaseinfo.id |
| | | <where> |
| | | service_donatebaseinfo.del_flag=0 |
| | | and service_ethicalreviewopinions.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 test="name != null and name != ''"> |
| | | and (`service_donatebaseinfo`.`Name` like concat('%', #{name}, '%') or `service_donatebaseinfo`.`InpatientNo` like concat('%', #{name}, '%')) |
| | | </if> |
| | | <if test="idcardno != null and idcardno != ''">and `service_donatebaseinfo`.`IDCardNo` = #{idcardno}</if> |
| | | <if test="inpatientno != null and inpatientno != ''">and `service_donatebaseinfo`.`InpatientNo` = #{inpatientno}</if> |
| | | <if test="treatmenthospitalno != null and treatmenthospitalno != ''">and |
| | | `service_donatebaseinfo`.`TreatmentHospitalNo` = #{treatmenthospitalno} |
| | | </if> |