<?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.VServiceDonateorganRegisterMapper">
|
|
<resultMap type="VServiceDonateorganRegister" id="VServiceDonateorganRegisterResult">
|
<result property="id" column="ID" />
|
<result property="name" column="NAME" />
|
<result property="sex" column="Sex" />
|
<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="residenceaddress" column="ResidenceAddress" />
|
<result property="donorno" column="DonorNo" />
|
<result property="organno" column="OrganNo" />
|
<result property="organname" column="OrganName" />
|
<result property="organstate" column="OrganState" />
|
<result property="organnumber" column="OrganNumber" />
|
<result property="organgettime" column="OrganGetTime" />
|
<result property="organgetdoct" column="OrganGetDoct" />
|
<result property="gainhospitalno" column="GainHospitalNo" />
|
<result property="gainhospitalname" column="GainHospitalName" />
|
<result property="transplanthospitalno" column="TransplantHospitalNo" />
|
<result property="transplanthospitalname" column="TransplantHospitalName" />
|
<result property="transplantdoct" column="TransplantDoct" />
|
<result property="transplanttime" column="TransplantTime" />
|
<result property="applicantusername" column="ApplicantUserName" />
|
<result property="applicanttime" column="ApplicantTime" />
|
<result property="checkusername" column="CheckUserName" />
|
<result property="checktime" column="CheckTime" />
|
<result property="checksuggestion" column="CheckSuggestion" />
|
<result property="allocationstatus" column="AllocationStatus" />
|
<result property="acceptname" column="AcceptName" />
|
<result property="acceptsex" column="AcceptSex" />
|
<result property="acceptidcard" column="AcceptIdcard" />
|
<result property="acceptage" column="AcceptAge" />
|
<result property="acceptageunit" column="AcceptAgeUnit" />
|
<result property="acceptphone" column="AcceptPhone" />
|
<result property="acceptresidenceaddress" column="AcceptResidenceAddress" />
|
</resultMap>
|
|
<sql id="selectVServiceDonateorganRegisterVo">
|
select ID, NAME, Sex, IDCardNo, Age, AgeUnit, Birthday, Phone, ResidenceAddress, DonorNo, OrganNo, OrganName, OrganState, OrganNumber, OrganGetTime, OrganGetDoct, GainHospitalNo, GainHospitalName, TransplantHospitalNo, TransplantHospitalName, TransplantDoct, TransplantTime, ApplicantUserName, ApplicantTime, CheckUserName, CheckTime, CheckSuggestion, AllocationStatus, AcceptName, AcceptSex, AcceptIdcard, AcceptAge, AcceptAgeUnit, AcceptPhone, AcceptResidenceAddress from v_service_donateorgan_register
|
</sql>
|
|
<select id="selectVServiceDonateorganRegisterList" parameterType="VServiceDonateorganRegister" resultMap="VServiceDonateorganRegisterResult">
|
<include refid="selectVServiceDonateorganRegisterVo"/>
|
<where>
|
<if test="name != null and name != ''"> and NAME like concat('%', #{name}, '%')</if>
|
<if test="idcardno != null and idcardno != ''"> and IDCardNo = #{idcardno}</if>
|
<if test="organno != null and organno != ''"> and OrganNo = #{organno}</if>
|
<if test="organname != null and organname != ''"> and OrganName like concat('%', #{organname}, '%')</if>
|
<if test="organstate != null "> and OrganState = #{organstate}</if>
|
<if test="organnumber != null and organnumber != ''"> and OrganNumber = #{organnumber}</if>
|
<if test="organgettime != null "> and OrganGetTime = #{organgettime}</if>
|
<if test="gainhospitalname != null and gainhospitalname != ''"> and GainHospitalName like concat('%', #{gainhospitalname}, '%')</if>
|
<if test="transplanthospitalname != null and transplanthospitalname != ''"> and TransplantHospitalName like concat('%', #{transplanthospitalname}, '%')</if>
|
<if test="transplanttime != null "> and TransplantTime = #{transplanttime}</if>
|
<if test="applicantusername != null and applicantusername != ''"> and ApplicantUserName like concat('%', #{applicantusername}, '%')</if>
|
<if test="applicanttime != null "> and ApplicantTime = #{applicanttime}</if>
|
<if test="checkusername != null and checkusername != ''"> and CheckUserName like concat('%', #{checkusername}, '%')</if>
|
<if test="checktime != null "> and CheckTime = #{checktime}</if>
|
<if test="acceptname != null and acceptname != ''"> and AcceptName like concat('%', #{acceptname}, '%')</if>
|
<if test="acceptidcard != null and acceptidcard != ''"> and AcceptIdcard = #{acceptidcard}</if>
|
</where>
|
</select>
|
|
</mapper>
|