liusheng
2024-03-11 48d56c0780ddcd28a19f306064e1dd21f0c425c0
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
<?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.ServiceDonorchargeMapper">
 
    <resultMap type="com.ruoyi.project.domain.ServiceDonorcharge" id="ServiceDonorchargeResult">
        <result property="id" column="id"/>
        <result property="infoid" column="infoid"/>
        <result property="donateno" column="donateno"/>
        <result property="donatetime" column="donatetime"/>
        <result property="name" column="name"/>
        <result property="borthdate" column="borthdate"/>
        <result property="sex" column="sex"/>
        <result property="age" column="age"/>
        <result property="donationcategory" column="DonationCategory"/>
        <result property="donateorgan" column="donateorgan"/>
        <result property="chargeamount" column="chargeamount"/>
        <result property="chargeamounted" column="chargeamounted"/>
        <result property="remark" column="remark"/>
        <result property="del_flag" 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"/>
    </resultMap>
 
    <sql id="selectServiceDonorchargeVo">
        select id,
               infoid,
               donateno,
               donatetime,
               name,
               borthdate,
               sex,
               age,
               DonationCategory,
               donateorgan,
               chargeamount,
               chargeamounted,
               remark,
               del_flag,
               create_by,
               create_time,
               update_by,
               update_time
        from service_donorcharge
    </sql>
 
    <select id="selectServiceDonorchargeList" parameterType="com.ruoyi.project.domain.ServiceDonorcharge"
            resultMap="ServiceDonorchargeResult">
        <include refid="selectServiceDonorchargeVo"/>
        <where>
            <if test="infoid != null ">and infoid = #{infoid}</if>
            <if test="donateno != null  and donateno != ''">and donateno = #{donateno}</if>
            <if test="donatetime != null ">and donatetime = #{donatetime}</if>
            <if test="name != null  and name != ''">and name like concat('%', #{name}, '%')</if>
            <if test="borthdate != null ">and borthdate = #{borthdate}</if>
            <if test="sex != null  and sex != ''">and sex = #{sex}</if>
            <if test="age != null  and age != ''">and age = #{age}</if>
            <if test="donationcategory != null  and donationcategory != ''">and DonationCategory = #{donationcategory}
            </if>
            <if test="donateorgan != null  and donateorgan != ''">and donateorgan = #{donateorgan}</if>
            <if test="chargeamount != null ">and chargeamount = #{chargeamount}</if>
            <if test="chargeamounted != null ">and chargeamounted = #{chargeamounted}</if>
        </where>
    </select>
 
</mapper>