liusheng
2023-06-14 d6f2f458d9c8156981880c987d861423ce9af146
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
<?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.ServiceDonateconsolationfundMapper">
    
    <resultMap type="ServiceDonateconsolationfund" id="ServiceDonateconsolationfundResult">
        <result property="id"    column="ID"    />
        <result property="infoid"    column="InfoID"    />
        <result property="donorno"    column="DonorNo"    />
        <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="familyrelations"    column="FamilyRelations"    />
        <result property="name"    column="Name"    />
        <result property="sex"    column="Sex"    />
        <result property="idcardtype"    column="IDCardType"    />
        <result property="idcardno"    column="IDCardNo"    />
        <result property="phone"    column="Phone"    />
        <result property="depositbank"    column="DepositBank"    />
        <result property="bankprovince"    column="BankProvince"    />
        <result property="bankprovincename"    column="BankProvinceName"    />
        <result property="bankcity"    column="BankCity"    />
        <result property="bankcityname"    column="BankCityName"    />
        <result property="banktown"    column="BankTown"    />
        <result property="banktownname"    column="BankTownName"    />
        <result property="branchbankname"    column="BranchBankName"    />
        <result property="bankcardno"    column="BankCardNo"    />
        <result property="annexbankcard"    column="AnnexBankCard"    />
        <result property="annexregistform"    column="AnnexRegistForm"    />
        <result property="amountrequested"    column="AmountRequested"    />
        <result property="consolationmark"    column="ConsolationMark"    />
        <result property="consolationtype"    column="ConsolationType"    />
        <result property="prepaidamount"    column="PrepaidAmount"    />
        <result property="invoicecount"    column="InvoiceCount"    />
        <result property="attachcount"    column="AttachCount"    />
        <result property="managerno"    column="ManagerNo"    />
        <result property="managername"    column="ManagerName"    />
        <result property="deptmentno"    column="DeptmentNo"    />
        <result property="deptmentname"    column="DeptmentName"    />
        <result property="opochecker"    column="OPOchecker"    />
        <result property="finvicepresident"    column="FinVicePresident"    />
        <result property="busvicepresident"    column="BusVicePresident"    />
        <result property="officedirector"    column="OfficeDirector"    />
        <result property="financedirector"    column="FinanceDirector"    />
        <result property="financechecher"    column="FinanceChecher"    />
        <result property="remark"    column="Remark"    />
        <result property="recordstatus"    column="RecordStatus"    />
        <result property="uploadflag"    column="uploadflag"    />
        <result property="uploadtime"    column="uploadtime"    />
    </resultMap>
 
    <sql id="selectServiceDonateconsolationfundVo">
        select ID, InfoID, DonorNo, del_flag, create_by, create_time, update_by, update_time, FamilyRelations, Name, Sex, IDCardType, IDCardNo, Phone, DepositBank, BankProvince, BankProvinceName, BankCity, BankCityName, BankTown, BankTownName, BranchBankName, BankCardNo, AnnexBankCard, AnnexRegistForm, AmountRequested, ConsolationMark, ConsolationType, PrepaidAmount, InvoiceCount, AttachCount, ManagerNo, ManagerName, DeptmentNo, DeptmentName, OPOchecker, FinVicePresident, BusVicePresident, OfficeDirector, FinanceDirector, FinanceChecher, Remark, RecordStatus, uploadflag, uploadtime from service_donateconsolationfund
    </sql>
 
    <select id="selectServiceDonateconsolationfundList" parameterType="ServiceDonateconsolationfund" resultMap="ServiceDonateconsolationfundResult">
        <include refid="selectServiceDonateconsolationfundVo"/>
        <where>
            <if test="donorno != null  and donorno != ''"> and DonorNo = #{donorno}</if>
            <if test="delFlag != null "> and del_flag = #{delFlag}</if>
            <if test="createTime != null "> and create_time = #{createTime}</if>
            <if test="name != null  and name != ''"> and Name like concat('%', #{name}, '%')</if>
            <if test="sex != null "> and Sex = #{sex}</if>
            <if test="idcardno != null  and idcardno != ''"> and IDCardNo = #{idcardno}</if>
            <if test="depositbank != null  and depositbank != ''"> and DepositBank = #{depositbank}</if>
            <if test="bankcardno != null  and bankcardno != ''"> and BankCardNo = #{bankcardno}</if>
            <if test="amountrequested != null "> and AmountRequested = #{amountrequested}</if>
            <if test="consolationtype != null  and consolationtype != ''"> and ConsolationType = #{consolationtype}</if>
            <if test="deptmentno != null  and deptmentno != ''"> and DeptmentNo = #{deptmentno}</if>
            <if test="deptmentname != null  and deptmentname != ''"> and DeptmentName like concat('%', #{deptmentname}, '%')</if>
            <if test="remark != null  and remark != ''"> and Remark = #{remark}</if>
            <if test="recordstatus != null  and recordstatus != ''"> and RecordStatus = #{recordstatus}</if>
            <if test="uploadflag != null  and uploadflag != ''"> and uploadflag = #{uploadflag}</if>
            <if test="uploadtime != null "> and uploadtime = #{uploadtime}</if>
        </where>
    </select>
 
</mapper>