yxh
yxh
2023-03-27 cc3c043f5591646ccfeef921d41f559441544c20
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
<?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.ServiceDonateannexrequirementMapper">
    
    <resultMap type="ServiceDonateannexrequirement" id="ServiceDonateannexrequirementResult">
        <result property="id"    column="ID"    />
        <result property="annexname"    column="AnnexName"    />
        <result property="annexno"    column="AnnexNo"    />
        <result property="expirestime"    column="ExpiresTime"    />
        <result property="isrequired"    column="IsRequired"    />
        <result property="flowname"    column="FlowName"    />
        <result property="donationcategory"    column="DonationCategory"    />
        <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"    />
    </resultMap>
 
    <sql id="selectServiceDonateannexrequirementVo">
        select ID, AnnexName, AnnexNo, ExpiresTime, IsRequired, FlowName, DonationCategory, del_flag, create_by, create_time, update_by, update_time from service_donateannexrequirement
    </sql>
 
    <select id="selectServiceDonateannexrequirementList" parameterType="ServiceDonateannexrequirement" resultMap="ServiceDonateannexrequirementResult">
        <include refid="selectServiceDonateannexrequirementVo"/>
        <where>
            <if test="annexname != null  and annexname != ''"> and AnnexName like concat('%', #{annexname}, '%')</if>
            <if test="annexno != null  and annexno != ''"> and AnnexNo = #{annexno}</if>
            <if test="expirestime != null "> and ExpiresTime = #{expirestime}</if>
            <if test="isrequired != null "> and IsRequired = #{isrequired}</if>
            <if test="flowname != null  and flowname != ''"> and FlowName like concat('%', #{flowname}, '%')</if>
            <if test="donationcategory != null  and donationcategory != ''"> and DonationCategory = #{donationcategory}</if>
        </where>
    </select>
 
</mapper>