<?xml version="1.0" encoding="UTF-8" ?>
|
<!DOCTYPE mapper
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.ruoyi.project.mapper.ServiceDonatebaseinfoReportMapper">
|
|
<resultMap type="com.ruoyi.project.domain.ServiceDonatebaseinfoReport" id="ServiceDonatebaseinfoReportResult">
|
<result property="id" column="ID"/>
|
<result property="caseNo" column="case_no"/>
|
<result property="reportStatus" column="report_status"/>
|
<result property="name" column="Name"/>
|
<result property="sex" column="Sex"/>
|
<result property="idcardtype" column="IDCardType"/>
|
<result property="idcardno" column="IDCardNo"/>
|
<result property="age" column="Age"/>
|
<result property="ageunit" column="AgeUnit"/>
|
<result property="birthday" column="Birthday"/>
|
<result property="phone" column="Phone"/>
|
<result property="nationality" column="Nationality"/>
|
<result property="nativeplace" column="NativePlace"/>
|
<result property="nation" column="Nation"/>
|
<result property="occupation" column="Occupation"/>
|
<result property="education" column="Education"/>
|
<result property="residenceaddress" column="ResidenceAddress"/>
|
<result property="residenceprovince" column="ResidenceProvince"/>
|
<result property="residenceprovincename" column="ResidenceProvinceName"/>
|
<result property="residencetownname" column="ResidenceTownName"/>
|
<result property="residencecommunity" column="ResidenceCommunity"/>
|
<result property="residencecommunityname" column="ResidenceCommunityName"/>
|
<result property="residencecountycode" column="ResidenceCountyCode"/>
|
<result property="residencecountyname" column="ResidenceCountyName"/>
|
<result property="registeraddress" column="RegisterAddress"/>
|
<result property="registerprovince" column="RegisterProvince"/>
|
<result property="registerprovincename" column="RegisterProvinceName"/>
|
<result property="registercityname" column="RegisterCityName"/>
|
<result property="registertownname" column="RegisterTownName"/>
|
<result property="registercommunityname" column="RegisterCommunityName"/>
|
<result property="treatmenthospitalname" column="TreatmentHospitalName"/>
|
<result property="treatmentdeptname" column="TreatmentDeptName"/>
|
<result property="diagnosisname" column="DiagnosisName"/>
|
<result property="inpatientno" column="InpatientNo"/>
|
<result property="illnessoverview" column="IllnessOverview"/>
|
<result property="infectious" column="Infectious"/>
|
<result property="infectiousOther" column="Infectious_Other"/>
|
<result property="patientstate" column="PatientState"/>
|
<result property="reporterphone" column="ReporterPhone"/>
|
<result property="reporttime" column="ReportTime"/>
|
<result property="delFlag" column="del_flag"/>
|
<result property="createBy" column="create_by"/>
|
<result property="createTime" column="create_time"/>
|
<result property="updateBy" column="update_by"/>
|
<result property="updateTime" column="update_time"/>
|
<result property="terminationCase" column="termination_case"/>
|
<result property="userNo" column="user_no"/>
|
<result property="userName" column="user_name"/>
|
<result property="deptName" column="dept_name"/>
|
<result property="deptNo" column="dept_no"/>
|
<result property="isTransport" column="is_transport"/>
|
<result property="gcsScore" column="gcs_score"/>
|
<result property="rhYin" column="rh_yin"/>
|
<result property="bloodType" column="blood_type"/>
|
<result property="coordinatorName" column="coordinator_name"/>
|
<result property="coordinatorNo" column="coordinator_no"/>
|
<result property="infoName" column="info_name"/>
|
<result property="infoNo" column="info_no"/>
|
</resultMap>
|
|
<sql id="selectServiceDonatebaseinfoReportVo">
|
select ID,
|
case_no,
|
coordinator_name,
|
coordinator_no,
|
info_name,
|
info_no,
|
blood_type,
|
rh_yin,
|
report_status,
|
gcs_score,
|
Name,
|
Sex,
|
IDCardType,
|
IDCardNo,
|
Age,
|
AgeUnit,
|
Birthday,
|
Phone,
|
Nationality,
|
NativePlace,
|
Nation,
|
Occupation,
|
Education,
|
ResidenceAddress,
|
ResidenceProvince,
|
ResidenceProvinceName,
|
ResidenceTownName,
|
ResidenceCommunity,
|
ResidenceCommunityName,
|
ResidenceCountyCode,
|
ResidenceCountyName,
|
RegisterAddress,
|
RegisterProvince,
|
RegisterProvinceName,
|
RegisterCityName,
|
RegisterTownName,
|
RegisterCommunityName,
|
TreatmentHospitalName,
|
TreatmentDeptName,
|
DiagnosisName,
|
InpatientNo,
|
IllnessOverview,
|
Infectious,
|
Infectious_Other,
|
PatientState,
|
ReporterPhone,
|
ReportTime,
|
del_flag,
|
create_by,
|
create_time,
|
update_by,
|
update_time,
|
termination_case,
|
user_no,
|
user_name,
|
dept_no,
|
dept_name,
|
is_transport
|
from service_donatebaseinfo_report
|
</sql>
|
|
<select id="selectServiceDonatebaseinfoReportList"
|
parameterType="com.ruoyi.project.domain.ServiceDonatebaseinfoReport"
|
resultMap="ServiceDonatebaseinfoReportResult">
|
<include refid="selectServiceDonatebaseinfoReportVo"/>
|
<where>
|
<if test="caseNo != null and caseNo != ''">and case_no = #{caseNo}</if>
|
<if test="coordinatorName != null ">and coordinator_name like concat('%', #{coordinatorName}, '%')</if>
|
<if test="coordinatorNo != null ">and coordinator_no = #{coordinatorNo}</if>
|
<if test="infoName != null ">and info_name like concat('%', #{infoName}, '%')</if>
|
<if test="infoNo != null ">and info_no = #{infoNo}</if>
|
<if test="gcsScore != null and gcsScore != ''">and gcs_score = #{gcsScore}</if>
|
<if test="reportStatus != null and reportStatus != ''">and report_status = #{reportStatus}</if>
|
<if test="name != null and name != ''">and Name like concat('%', #{name}, '%')</if>
|
<if test="sex != null and sex != ''">and Sex = #{sex}</if>
|
<if test="idcardtype != null ">and IDCardType = #{idcardtype}</if>
|
<if test="idcardno != null and idcardno != ''">and IDCardNo = #{idcardno}</if>
|
<if test="age != null ">and Age = #{age}</if>
|
<if test="ageunit != null and ageunit != ''">and AgeUnit = #{ageunit}</if>
|
<if test="birthday != null ">and Birthday = #{birthday}</if>
|
<if test="phone != null and phone != ''">and Phone = #{phone}</if>
|
<if test="nationality != null and nationality != ''">and Nationality = #{nationality}</if>
|
<if test="nativeplace != null and nativeplace != ''">and NativePlace = #{nativeplace}</if>
|
<if test="nation != null and nation != ''">and Nation = #{nation}</if>
|
<if test="occupation != null and occupation != ''">and Occupation = #{occupation}</if>
|
<if test="education != null and education != ''">and Education = #{education}</if>
|
<if test="residenceaddress != null and residenceaddress != ''">and ResidenceAddress = #{residenceaddress}
|
</if>
|
<if test="residenceprovince != null and residenceprovince != ''">and ResidenceProvince =
|
#{residenceprovince}
|
</if>
|
<if test="residenceprovincename != null and residenceprovincename != ''">and ResidenceProvinceName like
|
concat('%', #{residenceprovincename}, '%')
|
</if>
|
<if test="residencetownname != null and residencetownname != ''">and ResidenceTownName like concat('%',
|
#{residencetownname}, '%')
|
</if>
|
<if test="residencecommunity != null and residencecommunity != ''">and ResidenceCommunity =
|
#{residencecommunity}
|
</if>
|
<if test="residencecommunityname != null and residencecommunityname != ''">and ResidenceCommunityName like
|
concat('%', #{residencecommunityname}, '%')
|
</if>
|
<if test="residencecountycode != null and residencecountycode != ''">and ResidenceCountyCode =
|
#{residencecountycode}
|
</if>
|
<if test="residencecountyname != null and residencecountyname != ''">and ResidenceCountyName like
|
concat('%', #{residencecountyname}, '%')
|
</if>
|
<if test="registeraddress != null and registeraddress != ''">and RegisterAddress = #{registeraddress}</if>
|
<if test="registerprovince != null and registerprovince != ''">and RegisterProvince = #{registerprovince}
|
</if>
|
<if test="registerprovincename != null and registerprovincename != ''">and RegisterProvinceName like
|
concat('%', #{registerprovincename}, '%')
|
</if>
|
<if test="registercityname != null and registercityname != ''">and RegisterCityName like concat('%',
|
#{registercityname}, '%')
|
</if>
|
<if test="registertownname != null and registertownname != ''">and RegisterTownName like concat('%',
|
#{registertownname}, '%')
|
</if>
|
<if test="registercommunityname != null and registercommunityname != ''">and RegisterCommunityName like
|
concat('%', #{registercommunityname}, '%')
|
</if>
|
<if test="treatmenthospitalname != null and treatmenthospitalname != ''">and TreatmentHospitalName like
|
concat('%', #{treatmenthospitalname}, '%')
|
</if>
|
<if test="treatmentdeptname != null and treatmentdeptname != ''">and TreatmentDeptName like concat('%',
|
#{treatmentdeptname}, '%')
|
</if>
|
<if test="diagnosisname != null and diagnosisname != ''">and DiagnosisName like concat('%',
|
#{diagnosisname}, '%')
|
</if>
|
<if test="inpatientno != null and inpatientno != ''">and InpatientNo = #{inpatientno}</if>
|
<if test="illnessoverview != null and illnessoverview != ''">and IllnessOverview = #{illnessoverview}</if>
|
<if test="infectious != null and infectious != ''">and Infectious = #{infectious}</if>
|
<if test="infectiousOther != null and infectiousOther != ''">and Infectious_Other = #{infectiousOther}</if>
|
<if test="patientstate != null and patientstate != ''">and PatientState = #{patientstate}</if>
|
<if test="reporterphone != null and reporterphone != ''">and ReporterPhone = #{reporterphone}</if>
|
<if test="reporttime != null ">and ReportTime = #{reporttime}</if>
|
<if test="terminationCase != null ">and termination_case = #{terminationCase}</if>
|
<if test="userNo != null and userNo != ''">and userNo = #{userNo}</if>
|
<if test="userName != null and userName != ''">and user_name = #{userName}</if>
|
<if test="deptNo != null and deptNo != ''">and dept_no = #{deptNo}</if>
|
<if test="deptName != null and deptName != ''">and dept_name = #{deptName}</if>
|
<if test="isTransport != null and isTransport != ''">and is_transport = #{isTransport}</if>
|
<if test="rhYin != null and rhYin != ''">and rh_yin = #{rhYin}</if>
|
<if test="bloodType != null and bloodType != ''">and blood_type = #{bloodType}</if>
|
</where>
|
</select>
|
|
</mapper>
|