|  |  | 
 |  |  | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | 
 |  |  | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | 
 |  |  | <mapper namespace="com.ruoyi.project.mapper.ServiceRelativesconfirmationMapper"> | 
 |  |  |      | 
 |  |  |  | 
 |  |  |     <resultMap type="com.ruoyi.project.domain.ServiceRelativesconfirmation" id="ServiceRelativesconfirmationResult"> | 
 |  |  |         <result property="id"    column="ID"    /> | 
 |  |  |         <result property="infoid"    column="InfoID"    /> | 
 |  |  | 
 |  |  |         <result property="createTime"    column="create_time"    /> | 
 |  |  |         <result property="updateBy"    column="update_by"    /> | 
 |  |  |         <result property="updateTime"    column="update_time"    /> | 
 |  |  |         <result property="operatorno"    column="operatorno"    /> | 
 |  |  |         <result property="operatorname"    column="operatorname"    /> | 
 |  |  |         <result property="nation"    column="nation"    /> | 
 |  |  |         <result property="education"    column="education"    /> | 
 |  |  |         <result property="work"    column="work"    /> | 
 |  |  |     </resultMap> | 
 |  |  |  | 
 |  |  |     <sql id="selectServiceRelativesconfirmationVo"> | 
 |  |  |         select ID, InfoID, DonorNo, Name, IDCardType, IDCardNo, Phone, ResidenceAddress, ResidenceProvince, ResidenceProvinceName, ResidenceCity, ResidenceCityName, ResidenceTown, ResidenceTownName, ResidenceCommunity, ResidenceCommunityName, ResidenceCountyCode, ResidenceCountyName, Kinship, Kinship_ChildrenNum, SignFamilyRelations, KinshipConfirmationSign, OrganDecision, OrganDecision_Other, RelativeConfirmationSign, FamilyRelations, AcquisitionTissueNo, AcquisitionTissueName, ResponsibleUserID, ResponsibleUserName, CoordinatedUserIDO, CoordinatedUserNameO, CoordinatedUserIDT, CoordinatedUserNameT, SignDate, del_flag, create_by, create_time, update_by, update_time from service_relativesconfirmation | 
 |  |  |         select ID, InfoID,nation,education,work, DonorNo, Name, IDCardType, IDCardNo, Phone, ResidenceAddress, ResidenceProvince, ResidenceProvinceName, ResidenceCity, ResidenceCityName, ResidenceTown, ResidenceTownName, ResidenceCommunity, ResidenceCommunityName, ResidenceCountyCode, ResidenceCountyName, Kinship, Kinship_ChildrenNum, SignFamilyRelations, KinshipConfirmationSign, OrganDecision, OrganDecision_Other, RelativeConfirmationSign, FamilyRelations, AcquisitionTissueNo, AcquisitionTissueName, ResponsibleUserID, ResponsibleUserName, CoordinatedUserIDO, CoordinatedUserNameO, CoordinatedUserIDT, CoordinatedUserNameT, SignDate, del_flag, create_by, create_time, update_by, update_time,operatorname,operatorno from service_relativesconfirmation | 
 |  |  |     </sql> | 
 |  |  |  | 
 |  |  |     <select id="selectServiceRelativesconfirmationList" parameterType="ServiceRelativesconfirmation" resultMap="ServiceRelativesconfirmationResult"> | 
 |  |  |     <select id="selectServiceRelativesconfirmationList" parameterType="com.ruoyi.project.domain.ServiceRelativesconfirmation" resultMap="ServiceRelativesconfirmationResult"> | 
 |  |  |         <include refid="selectServiceRelativesconfirmationVo"/> | 
 |  |  |         <where> | 
 |  |  |             <if test="donorno != null  and donorno != ''"> and DonorNo = #{donorno}</if> | 
 |  |  | 
 |  |  |         `service_donatebaseinfo`.`TreatmentHospitalName` AS `TreatmentHospitalName`, | 
 |  |  |         `service_donatebaseinfo`.`TreatmentDeptName` AS `TreatmentDeptName`, | 
 |  |  |         `service_donatebaseinfo`.`create_by` AS `basecreateby`, | 
 |  |  |         `service_donatebaseinfo`.`workflow` AS `workflow`, | 
 |  |  |         `service_donatebaseinfo`.`termination_case` AS `terminationCase`, | 
 |  |  |         `service_donatebaseinfo`.`donatetime` AS `donatetime`, | 
 |  |  |         `service_relativesconfirmation`.`ID` AS `rcID`, | 
 |  |  |         `service_relativesconfirmation`.`InfoID` AS `InfoID`, | 
 |  |  |         `service_relativesconfirmation`.`DonorNo` AS `rcDonroNo`, | 
 |  |  | 
 |  |  |         `service_relativesconfirmation`.`create_by` AS `createBy`, | 
 |  |  |         `service_relativesconfirmation`.`create_time` AS `createTime`, | 
 |  |  |         `service_relativesconfirmation`.`update_by` AS `updateBy`, | 
 |  |  |         `service_relativesconfirmation`.`update_time` AS `updateTime` | 
 |  |  |         `service_relativesconfirmation`.`update_time` AS `updateTime`, | 
 |  |  |         `service_relativesconfirmation`.`operatorno` AS `operatorno`, | 
 |  |  |         `service_relativesconfirmation`.`operatorname` AS `operatorname`, | 
 |  |  |         `service_relativesconfirmation`.`nation` AS `nation`, | 
 |  |  |         `service_relativesconfirmation`.`education` AS `education`, | 
 |  |  |         `service_relativesconfirmation`.`work` AS `work` | 
 |  |  |     FROM | 
 |  |  |  | 
 |  |  |             `service_donatebaseinfo` | 
 |  |  | 
 |  |  |         `base_organization`.`OrganizationID` = `service_donatebaseinfo`.`TreatmentHospitalNo` | 
 |  |  |  | 
 |  |  |         <where> | 
 |  |  |             service_donatebaseinfo.del_flag=0 | 
 |  |  |             and service_relativesconfirmation.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> | 
 |  |  |             <if test="idcardno != null  and idcardno != ''"> and `service_donatebaseinfo`.`IDCardNo` = #{idcardno}</if> | 
 |  |  | 
 |  |  |             <if test="residenceprovince != null and residenceprovince != ''"> and `service_relativesconfirmation`.`ResidenceProvince` = #{residenceprovince}</if> | 
 |  |  |             <if test="residencecity != null and residencecity != ''"> and `service_relativesconfirmation`.`ResidenceCity` = #{residencecity}</if> | 
 |  |  |             <if test="residencetown != null and residencetown != ''"> and `service_relativesconfirmation`.`ResidenceTown` = #{residencetown}</if> | 
 |  |  |             <if test="workflow != null "> and `service_donatebaseinfo`.`workflow` = #{workflow}</if> | 
 |  |  |  | 
 |  |  |     </where> | 
 |  |  |  | 
 |  |  | 
 |  |  |         where SignDate >= #{starttime} and SignDate <= #{endtime} | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  | </mapper> | 
 |  |  | </mapper> |