| | |
| | | <result property="nation" column="nation" /> |
| | | <result property="education" column="education" /> |
| | | <result property="occupation" column="occupation" /> |
| | | <result property="assessannex" column="assessannex"/> |
| | | <result property="relativeRemark" column="relative_remark"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceRelativesconfirmationVo"> |
| | | select ID, InfoID,nation,education,occupation, 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 |
| | | select ID, |
| | | InfoID, |
| | | assessannex, |
| | | relative_remark, |
| | | nation, |
| | | education, |
| | | occupation, |
| | | 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="com.ruoyi.project.domain.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> |
| | | <if test="name != null and name != ''"> and Name like concat('%', #{name}, '%')</if> |
| | | <if test="idcardno != null and idcardno != ''"> and IDCardNo = #{idcardno}</if> |
| | | <if test="acquisitiontissueno != null and acquisitiontissueno != ''"> and AcquisitionTissueNo = #{acquisitiontissueno}</if> |
| | | <if test="params.beginSigndate != null and params.beginSigndate != '' and params.endSigndate != null and params.endSigndate != ''"> and SignDate between #{params.beginSigndate} and #{params.endSigndate}</if> |
| | | <if test="acquisitiontissueno != null and acquisitiontissueno != ''">and AcquisitionTissueNo = |
| | | #{acquisitiontissueno} |
| | | </if> |
| | | <if test="params.beginSigndate != null and params.beginSigndate != '' and params.endSigndate != null and params.endSigndate != ''"> |
| | | and SignDate between #{params.beginSigndate} and #{params.endSigndate} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="getCoordinateUserByInfoId" resultType="java.lang.String"> |
| | | select CoordinatedUserIDO from service_relativesconfirmation |
| | | select CoordinatedUserIDO |
| | | from service_relativesconfirmation |
| | | where InfoID = #{infoid} |
| | | </select> |
| | | <select id="selectVOList" resultType="com.ruoyi.project.domain.vo.RelativeConfirmationVO"> |
| | |
| | | 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="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="infoid != null and infoid != ''"> and `service_relativesconfirmation`.`InfoID` = #{infoid}</if> |
| | | <if test="starttime != null "> and `service_relativesconfirmation`.SignDate >= #{starttime} </if> |
| | | <if test="endtime != null "> and `service_relativesconfirmation`.SignDate <= #{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> |
| | | <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="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> |
| | |
| | | |
| | | </select> |
| | | <select id="countNumber" resultType="java.lang.Integer"> |
| | | select count(*) from service_relativesconfirmation |
| | | where SignDate >= #{starttime} and SignDate <= #{endtime} |
| | | select count(*) |
| | | from service_relativesconfirmation |
| | | where SignDate >= #{starttime} |
| | | and SignDate <= #{endtime} |
| | | </select> |
| | | |
| | | <select id="confirmationBaseInfoList" resultType="com.ruoyi.project.domain.dto.RelativeConfirmationBaseInfoDTO"> |
| | | SELECT sd.TreatmentHospitalName as treatmenthospitalname, |
| | | sd.TreatmentHospitalNo as treatmenthospitalno, |
| | | sd.DonorNo as donorno, |
| | | sd.case_no as caseNo, |
| | | sd.Name as name, |
| | | sd.RecordState as recordstate, |
| | | sd.Sex as sex, |
| | | sd.Age as age, |
| | | sd.BloodType as bloodtype, |
| | | sd.idcardno as idcardno, |
| | | sd.diagnosisname as diagnosisname, |
| | | sr.infoID as infoid, |
| | | sr.ID as id, |
| | | sr.RelativeConfirmationSign as relativeConfirmationSign, |
| | | sr.SignDate as signdate, |
| | | sr.ResponsibleUserName as responsibleusername, |
| | | sr.ResponsibleUserID as responsibleuserid, |
| | | sr.CoordinatedUserIDO as coordinateduserido, |
| | | sr.CoordinatedUserNameO as coordinatedusernameo, |
| | | sr.CoordinatedUserNameT as coordinateduseridt, |
| | | sr.ResponsibleUserID as responsibleuserid |
| | | FROM service_donatebaseinfo sd |
| | | LEFT JOIN service_relativesconfirmation sr ON sd.ID = sr.InfoID and sd.del_flag = 0 |
| | | AND sr.del_flag = 0 |
| | | <where> |
| | | <if test="infoid != null and infoid != ''">AND sr.InfoID = #{infoid}</if> |
| | | <if test="recordstate != null and recordstate != ''">AND sd.RecordState = #{recordstate}</if> |
| | | <if test="caseNo != null and caseNo != ''">AND sd.case_no = #{caseNo}</if> |
| | | <if test="treatmenthospitalname != null and treatmenthospitalname != ''">AND sd.TreatmentHospitalName = |
| | | #{treatmenthospitalname} |
| | | </if> |
| | | <if test="name != null and name != ''">AND sd.Name = #{name}</if> |
| | | <if test="responsibleusername != null and responsibleusername != ''">AND sd.ResponsibleUserName = |
| | | #{responsibleusername} |
| | | </if> |
| | | <if test="responsibleusername != null and responsibleusername != ''">AND sd.SignDate = |
| | | #{responsibleusername} |
| | | </if> |
| | | <if test="relativeconfirmationsign != null and relativeconfirmationsign != ''">AND |
| | | sd.RelativeConfirmationSign = |
| | | #{relativeconfirmationsign} |
| | | </if> |
| | | <if test="startSigndate != null and startSigndate != ''"><!-- 确认开始时间检索 --> |
| | | and sr.SignDate >= #{startSigndate} |
| | | </if> |
| | | <if test="endSigndate != null and endSigndate != ''"><!-- 确认结束时间检索 --> |
| | | and sr.SignDate <= #{endSigndate} |
| | | </if> |
| | | </where> |
| | | <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if> |
| | | </select> |
| | | |
| | | </mapper> |