liusheng
2024-03-21 c20c99f256e2f47bd45f0b48fb6b1bcc83960f1e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?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>