liusheng
2024-03-19 519886a70d630e3cdd6c0f40f55fcebc6e780dc5
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
<?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.ServiceDonorpaymentMapper">
    
    <resultMap type="com.ruoyi.project.domain.ServiceDonorpayment" id="ServiceDonorpaymentResult">
        <result property="id"    column="id"    />
        <result property="paymentno"    column="paymentno"    />
        <result property="paymenttime"    column="paymenttime"    />
        <result property="paystatus"    column="paystatus"    />
        <result property="contactinfo"    column="contactinfo"    />
        <result property="hospitalname"    column="hospitalname"    />
        <result property="hospitalno"    column="hospitalno"    />
        <result property="hospitalcontactinfo"    column="hospitalcontactinfo"    />
        <result property="receivableamount"    column="receivableamount"    />
        <result property="beneficiary"    column="beneficiary"    />
        <result property="beneficiarybank"    column="beneficiarybank"    />
        <result property="beneficiaryaccount"    column="beneficiaryaccount"    />
        <result property="receivedamount"    column="receivedamount"    />
        <result property="receivedtime"    column="receivedtime"    />
        <result property="remark"    column="remark"    />
        <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="userName"    column="user_name"    />
        <result property="userNo"    column="user_no"    />
    </resultMap>
 
    <sql id="selectServiceDonorpaymentVo">
        select id, paymentno, paymenttime, paystatus, contactinfo, hospitalname, hospitalno, hospitalcontactinfo, receivableamount, beneficiary, beneficiarybank, beneficiaryaccount, receivedamount, receivedtime, remark, del_flag, create_by, create_time, update_by, update_time,user_name,user_no from service_donorpayment
    </sql>
 
    <select id="selectServiceDonorpaymentList" parameterType="com.ruoyi.project.domain.ServiceDonorpayment" resultMap="ServiceDonorpaymentResult">
        <include refid="selectServiceDonorpaymentVo"/>
        <where>
            <if test="paymentno != null  and paymentno != ''"> and paymentno = #{paymentno}</if>
            <if test="paymenttime != null "> and paymenttime = #{paymenttime}</if>
            <if test="paystatus != null  and paystatus != ''"> and paystatus = #{paystatus}</if>
            <if test="contactinfo != null  and contactinfo != ''"> and contactinfo = #{contactinfo}</if>
            <if test="hospitalname != null "> and hospitalname like concat('%', #{hospitalname}, '%')</if>
            <if test="hospitalno != null  and hospitalno != ''"> and hospitalno = #{hospitalno}</if>
            <if test="hospitalcontactinfo != null  and hospitalcontactinfo != ''"> and hospitalcontactinfo = #{hospitalcontactinfo}</if>
            <if test="receivableamount != null "> and receivableamount = #{receivableamount}</if>
            <if test="beneficiary != null  and beneficiary != ''"> and beneficiary = #{beneficiary}</if>
            <if test="beneficiarybank != null  and beneficiarybank != ''"> and beneficiarybank = #{beneficiarybank}</if>
            <if test="beneficiaryaccount != null  and beneficiaryaccount != ''"> and beneficiaryaccount = #{beneficiaryaccount}</if>
            <if test="userName != null  and userName != ''"> and user_name = #{userName}</if>
            <if test="userNo != null  and userNo != ''"> and user_no = #{userNo}</if>
            <if test="receivedamount != null "> and receivedamount = #{receivedamount}</if>
            <if test="receivedtime != null "> and receivedtime = #{receivedtime}</if>
        </where>
    </select>
 
</mapper>