| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceDonationwitnessVo"> |
| | | select ID, InfoID, DonorNo, GainHospitalNo, GainHospitalName, DeathTime, DeathReason, DeathJudgeDoctO, DeathJudgeDoctT, DeathJudgeAnnex, OperationBegTime, OperationEndTime, OperationDoctor, IsSpendRemember, IsRestoreRemains, RememberAnnex, ResponsibleUserID, ResponsibleUserName, CoordinatedUserIDO, CoordinatedUserNameO, CoordinatedUserIDT, CoordinatedUserNameT, AbdominalAortaCannulaTime, AbdominalAortaPerfusionTime, PortalVeinCannulaTime, PortalVeinPerfusionTime, PulmonaryArteryCannulaTime, PulmonaryArteryPerfusionTime, AortaCannulaTime, AortaPerfusionTime, del_flag, create_by, create_time, update_by, update_time, OrganDonation, OrganDonation_Other, DonationCategory from service_donationwitness |
| | | select ID, |
| | | InfoID, |
| | | DonorNo, |
| | | GainHospitalNo, |
| | | GainHospitalName, |
| | | DeathTime, |
| | | DeathReason, |
| | | DeathJudgeDoctO, |
| | | DeathJudgeDoctT, |
| | | DeathJudgeAnnex, |
| | | OperationBegTime, |
| | | OperationEndTime, |
| | | OperationDoctor, |
| | | IsSpendRemember, |
| | | IsRestoreRemains, |
| | | RememberAnnex, |
| | | ResponsibleUserID, |
| | | ResponsibleUserName, |
| | | CoordinatedUserIDO, |
| | | CoordinatedUserNameO, |
| | | CoordinatedUserIDT, |
| | | CoordinatedUserNameT, |
| | | AbdominalAortaCannulaTime, |
| | | AbdominalAortaPerfusionTime, |
| | | PortalVeinCannulaTime, |
| | | PortalVeinPerfusionTime, |
| | | PulmonaryArteryCannulaTime, |
| | | PulmonaryArteryPerfusionTime, |
| | | AortaCannulaTime, |
| | | AortaPerfusionTime, |
| | | del_flag, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | OrganDonation, |
| | | OrganDonation_Other, |
| | | DonationCategory |
| | | from service_donationwitness |
| | | </sql> |
| | | |
| | | <select id="selectServiceDonationwitnessList" parameterType="com.ruoyi.project.domain.ServiceDonationwitness" resultMap="ServiceDonationwitnessResult"> |
| | | <select id="selectServiceDonationwitnessList" parameterType="com.ruoyi.project.domain.ServiceDonationwitness" |
| | | resultMap="ServiceDonationwitnessResult"> |
| | | <include refid="selectServiceDonationwitnessVo"/> |
| | | <where> |
| | | <if test="donorno != null and donorno != ''"> and DonorNo = #{donorno}</if> |
| | | <if test="gainhospitalname != null and gainhospitalname != ''"> and GainHospitalName like concat('%', #{gainhospitalname}, '%')</if> |
| | | <if test="gainhospitalname != null and gainhospitalname != ''">and GainHospitalName like concat('%', |
| | | #{gainhospitalname}, '%') |
| | | </if> |
| | | <if test="operationdoctor != null and operationdoctor != ''"> and OperationDoctor = #{operationdoctor}</if> |
| | | </where> |
| | | </select> |
| | |
| | | |
| | | <where> |
| | | <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> |
| | | <if test="name != null and name != ''">and `service_donatebaseinfo`.`Name` like concat('%', #{name}, '%') |
| | | </if> |
| | | <if test="idcardno != null and idcardno != ''"> and `service_donatebaseinfo`.`IDCardNo` = #{idcardno}</if> |
| | | <if test="treatmenthospitalno != null and treatmenthospitalno != ''"> and `service_donatebaseinfo`.`TreatmentHospitalNo` = #{treatmenthospitalno}</if> |
| | | <if test="recordstate != null and recordstate != ''"> and `service_donatebaseinfo`.`RecordState` = #{recordstate}</if> |
| | | <if test="basecreateby != null and basecreateby != ''"> and `service_donatebaseinfo`.`create_by` = #{basecreateby}</if> |
| | | <if test="treatmenthospitalno != null and treatmenthospitalno != ''">and |
| | | `service_donatebaseinfo`.`TreatmentHospitalNo` = #{treatmenthospitalno} |
| | | </if> |
| | | <if test="recordstate != null and recordstate != ''">and `service_donatebaseinfo`.`RecordState` = |
| | | #{recordstate} |
| | | </if> |
| | | <if test="basecreateby != null and basecreateby != ''">and `service_donatebaseinfo`.`create_by` = |
| | | #{basecreateby} |
| | | </if> |
| | | <if test="starttime != null "> and `service_donationwitness`.OperationBegTime >= #{starttime} </if> |
| | | <if test="endtime != null "> and `service_donationwitness`.OperationBegTime <= #{endtime}</if> |
| | | <if test="reporterno != null and reporterno != ''"> and `service_donatebaseinfo`.ReporterNo = #{reporterno}</if> |
| | | <if test="reporterno != null and reporterno != ''">and `service_donatebaseinfo`.ReporterNo = |
| | | #{reporterno} |
| | | </if> |
| | | <if test="city != null and city != ''"> and `base_organization`.`City` = #{city}</if> |
| | | </where> |
| | | |
| | |
| | | <if test="reporterno != null and reporterno != ''"> and b.ReporterNo = #{reporterno}</if> |
| | | </select> |
| | | <select id="getDonationCategoryByInfoId" resultType="java.lang.String"> |
| | | select DonationCategory from service_donationwitness |
| | | where InfoID = #{infoId} and del_flag = 0 |
| | | select DonationCategory |
| | | from service_donationwitness |
| | | where InfoID = #{infoId} |
| | | and del_flag = 0 |
| | | </select> |
| | | <select id="countNumber" resultType="java.lang.Integer"> |
| | | select count(*) from service_donationwitness |
| | | where OperationBegTime >= #{starttime} and OperationBegTime <= #{endtime} |
| | | select count(*) |
| | | from service_donationwitness |
| | | where OperationBegTime >= #{starttime} |
| | | and OperationBegTime <= #{endtime} |
| | | </select> |
| | | <select id="selectByInfoId" resultType="com.ruoyi.project.domain.ServiceDonationwitness"> |
| | | <include refid="selectServiceDonationwitnessVo"/> |
| | | where InfoID = #{infoid} |
| | | where InfoID = #{infoid} and del_flag!=1 |
| | | </select> |
| | | <select id="getAllDonatePeople" resultType="com.ruoyi.project.domain.ServiceDonationwitness"> |
| | | <include refid="selectServiceDonationwitnessVo"/> |