| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.project.mapper.ServiceDonateorganMapper"> |
| | | |
| | | <resultMap type="ServiceDonateorgan" id="ServiceDonateorganResult"> |
| | | <resultMap type="com.ruoyi.project.domain.ServiceDonateorgan" id="ServiceDonateorganResult"> |
| | | <result property="id" column="ID" /> |
| | | <result property="infoid" column="InfoID" /> |
| | | <result property="donorno" column="DonorNo" /> |
| | |
| | | select ID, InfoID, DonorNo, OrganNo, OrganName, OrganState, OrganNumber, OrganGetTime, OrganGetDoct, GainHospitalNo, GainHospitalName, TransplantHospitalNo, TransplantHospitalName, TransplantDoct, TransplantTime, AbandonReason, ReallocationReason, IsBiopsyBefore, IsBiopsyAfter, IsMarginalOrgan, IsPathogenPositive, IsPNF, IsDGF, del_flag, create_by, create_time, update_by, update_time from service_donateorgan |
| | | </sql> |
| | | |
| | | <select id="selectServiceDonateorganList" parameterType="ServiceDonateorgan" resultMap="ServiceDonateorganResult"> |
| | | <select id="selectServiceDonateorganList" parameterType="com.ruoyi.project.domain.ServiceDonateorgan" resultMap="ServiceDonateorganResult"> |
| | | <include refid="selectServiceDonateorganVo"/> |
| | | <where> |
| | | <if test="infoid != null "> and InfoID = #{infoid}</if> |
| | |
| | | `service_donateorgan`.`create_by` AS `create_by`, |
| | | `service_donateorgan`.`create_time` AS `create_time`, |
| | | `service_donateorgan`.`update_by` AS `update_by`, |
| | | `service_donateorgan`.`update_time` AS `update_time` |
| | | `service_donateorgan`.`update_time` AS `update_time`, |
| | | `service_donatebaseinfo`.`leadername` AS `leadername`, |
| | | `service_donatebaseinfo`.`leaderno` AS `leaderno`, |
| | | `service_donatebaseinfo`.`businessarea` AS `businessarea` |
| | | FROM |
| | | ( |
| | | `service_donatebaseinfo` |
| | |
| | | <if test="transplanthospitalno != null and transplanthospitalno != ''"> and `service_donateorgan`.`TransplantHospitalNo` = #{transplanthospitalno}</if> |
| | | <if test="transplanthospitalname != null and transplanthospitalname != ''"> and `service_donateorgan`.`TransplantHospitalName` = #{transplanthospitalname}</if> |
| | | <if test="organstate != null and organstate != ''"> and `service_donateorgan`.`OrganState` = #{organstate}</if> |
| | | <if test="reportername != null and reportername != ''"> and `service_donatebaseinfo`.`ReporterName` = #{reportername}</if> |
| | | <if test="leadername != null and leadername != ''"> and `service_donatebaseinfo`.`leadername` = #{leadername}</if> |
| | | <if test="leaderno != null and leaderno != ''"> and `service_donatebaseinfo`.`leaderno` = #{leaderno}</if> |
| | | <if test="businessarea != null and businessarea != ''"> and `service_donatebaseinfo`.`businessarea` = #{businessarea}</if> |
| | | <if test="gainHospitalname != null and gainHospitalname != ''"> and `service_donateorgan`.`GainHospitalName` = #{gainHospitalname}</if> |
| | | <if test="treatmenthospitalname != null and treatmenthospitalname != ''"> and `service_donatebaseinfo`.`TreatmentHospitalName` = #{treatmenthospitalname}</if> |
| | | <if test="startorgangettime != null and endorgangettime != null "> and `service_donateorgan`.`OrganGetTime` >= #{startorgangettime} and `service_donateorgan`.`OrganGetTime` <= #{endorgangettime} </if> |
| | | <if test="starttransplanttime != null and endtransplanttime != null "> and `service_donateorgan`.`TransplantTime` >= #{starttransplanttime} and `service_donateorgan`.`TransplantTime` <= #{endtransplanttime}</if> |
| | | |
| | | </where> |
| | | </select> |