| | |
| | | <result property="organdonation" column="OrganDonation"/> |
| | | <result property="organdonationOther" column="OrganDonation_Other"/> |
| | | <result property="donationcategory" column="DonationCategory"/> |
| | | <result property="coordinatorInOperating" column="coordinator_in_operating"/> |
| | | <result property="coordinatorOutOperating" column="coordinator_out_operating"/> |
| | | <result property="coorinatorSign" column="coorinator_sign"/> |
| | | <result property="coorinatorSignTime" column="coorinator_sign_time"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceDonationwitnessVo"> |
| | | select ID, |
| | | InfoID, |
| | | coordinator_in_operating, |
| | | coordinator_out_operating, |
| | | coorinator_sign, |
| | | coorinator_sign_time, |
| | | DonorNo, |
| | | GainHospitalNo, |
| | | GainHospitalName, |
| | |
| | | `service_donatebaseinfo`.`ReporterPhone` AS `ReporterPhone`, |
| | | `service_donatebaseinfo`.`ReportTime` AS `ReportTime`, |
| | | `service_donatebaseinfo`.`create_by` AS `basecreateby`, |
| | | `service_donatebaseinfo`.`workflow` AS `workflow`, |
| | | `service_donatebaseinfo`.`termination_case` AS `terminationCase`, |
| | | `service_donatebaseinfo`.`donatetime` AS `donatetime`, |
| | | `service_donationwitness`.`ID` AS `dwID`, |
| | | `service_donationwitness`.`InfoID` AS `InfoID`, |
| | | `service_donationwitness`.`DonorNo` AS `dwDonorNo`, |
| | |
| | | `service_donationwitness`.`create_time` AS `createtime`, |
| | | `service_donationwitness`.`update_by` AS `updateby`, |
| | | `service_donationwitness`.`update_time` AS `updatetime` |
| | | `service_donationwitness`.`coordinator_in_operating` AS `coordinatorInOperating` |
| | | `service_donationwitness`.`coordinator_out_operating` AS `coordinatorOutOperating` |
| | | `service_donationwitness`.`coorinator_sign` AS `coorinatorSign` |
| | | `service_donationwitness`.`coorinator_sign_time` AS `coorinatorSignTime` |
| | | 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> |
| | |
| | | #{reporterno} |
| | | </if> |
| | | <if test="city != null and city != ''">and `base_organization`.`City` = #{city}</if> |
| | | <if test="workflow != null ">and `service_donatebaseinfo`.`workflow` = #{workflow}</if> |
| | | </where> |
| | | |
| | | order by `service_donationwitness`.`create_time` desc |
| | |
| | | inner join service_donatebaseinfo b on w.InfoID = b.id |
| | | inner join base_organization o on b.TreatmentHospitalNo = o.OrganizationID |
| | | <where> |
| | | w.del_flag=0 |
| | | and b.del_flag=0 |
| | | <if test="starttime != null ">and w.OperationBegTime >= #{starttime}</if> |
| | | <if test="endtime != null ">and w.OperationBegTime <= #{endtime}</if> |
| | | <if test="city != null and city != ''">and o.City = #{city}</if> |
| | |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
| | | </mapper> |