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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?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.ServiceDonationwitnessorganMapper">
 
    <resultMap type="com.ruoyi.project.domain.ServiceDonationwitnessorgan" id="ServiceDonationwitnessorganResult">
        <result property="id" column="ID"/>
        <result property="infoid" column="InfoID"/>
        <result property="donorno" column="DonorNo"/>
        <result property="organno" column="OrganNo"/>
        <result property="organname" column="OrganName"/>
        <result property="organnumber" column="OrganNumber"/>
        <result property="organstate" column="OrganState"/>
        <result property="notgetreason" column="notgetreason"/>
        <result property="organgettime" column="OrganGetTime"/>
        <result property="organgetdoct" column="OrganGetDoct"/>
        <result property="gainhospitalno" column="GainHospitalNo"/>
        <result property="gainhospitalname" column="GainHospitalName"/>
        <result property="isbiopsybefore" column="IsBiopsyBefore"/>
        <result property="isbiopsyafter" column="IsBiopsyAfter"/>
        <result property="ismarginalorgan" column="IsMarginalOrgan"/>
        <result property="ispathogenpositive" column="IsPathogenPositive"/>
        <result property="ispnf" column="IsPNF"/>
        <result property="isdgf" column="IsDGF"/>
        <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="name" column="name"/>
        <result property="caseno" column="caseno"/>
    </resultMap>
 
    <sql id="selectServiceDonationwitnessorganVo">
        select ID,
               InfoID,
               DonorNo,
               OrganNo,
               OrganName,
               OrganNumber,
               OrganState,
               notgetreason,
               OrganGetTime,
               OrganGetDoct,
               GainHospitalNo,
               GainHospitalName,
               IsBiopsyBefore,
               IsBiopsyAfter,
               IsMarginalOrgan,
               IsPathogenPositive,
               IsPNF,
               IsDGF,
               del_flag,
               create_by,
               create_time,
               update_by,
               caseno,
               name,
               update_time
        from service_donationwitnessorgan
    </sql>
 
    <select id="selectServiceDonationwitnessorganList"
            parameterType="com.ruoyi.project.domain.ServiceDonationwitnessorgan"
            resultMap="ServiceDonationwitnessorganResult">
        <include refid="selectServiceDonationwitnessorganVo"/>
        <where>
            <if test="infoid != null ">and InfoID = #{infoid}</if>
            <if test="donorno != null  and donorno != ''">and DonorNo = #{donorno}</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="organnumber != null  and organnumber != ''">and OrganNumber = #{organnumber}</if>
            <if test="organstate != null  and organstate != ''">and OrganState = #{organstate}</if>
            <if test="notgetreason != null  and notgetreason != ''">and notgetreason = #{notgetreason}</if>
            <if test="organgettime != null ">and OrganGetTime = #{organgettime}</if>
            <if test="organgetdoct != null  and organgetdoct != ''">and OrganGetDoct = #{organgetdoct}</if>
            <if test="gainhospitalno != null  and gainhospitalno != ''">and GainHospitalNo = #{gainhospitalno}</if>
            <if test="gainhospitalname != null  and gainhospitalname != ''">and GainHospitalName like concat('%',
                #{gainhospitalname}, '%')
            </if>
            <if test="isbiopsybefore != null  and isbiopsybefore != ''">and IsBiopsyBefore = #{isbiopsybefore}</if>
            <if test="isbiopsyafter != null  and isbiopsyafter != ''">and IsBiopsyAfter = #{isbiopsyafter}</if>
            <if test="ismarginalorgan != null  and ismarginalorgan != ''">and IsMarginalOrgan = #{ismarginalorgan}</if>
            <if test="ispathogenpositive != null  and ispathogenpositive != ''">and IsPathogenPositive =
                #{ispathogenpositive}
            </if>
            <if test="ispnf != null  and ispnf != ''">and IsPNF = #{ispnf}</if>
            <if test="isdgf != null  and isdgf != ''">and IsDGF = #{isdgf}</if>
        </where>
    </select>
 
</mapper>