liusheng
2023-11-10 6f344e6360751574f7e03b21c00cfa3f4b2bc099
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
<?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.BaseAnnextypeMapper">
    
    <resultMap type="com.ruoyi.project.domain.BaseAnnextype" id="BaseAnnextypeResult">
        <result property="id"    column="ID"    />
        <result property="donationcategory"    column="donationcategory"    />
        <result property="annextype"    column="annextype"    />
        <result property="annexname"    column="annexname"    />
        <result property="need"    column="need"    />
        <result property="seqno"    column="seqno"    />
        <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="selectBaseAnnextypeVo">
        select ID, donationcategory, annextype, annexname, need, seqno, remark, del_flag, create_by, create_time, update_by, update_time from base_annextype
    </sql>
 
    <select id="selectBaseAnnextypeList" parameterType="com.ruoyi.project.domain.BaseAnnextype" resultMap="BaseAnnextypeResult">
        <include refid="selectBaseAnnextypeVo"/>
        <where>
            <if test="donationcategory != null  and donationcategory != ''"> and donationcategory = #{donationcategory}</if>
            <if test="annextype != null  and annextype != ''"> and annextype = #{annextype}</if>
            <if test="annexname != null  and annexname != ''"> and annexname like concat('%', #{annexname}, '%')</if>
            <if test="need != null "> and need = #{need}</if>
            <if test="seqno != null "> and seqno = #{seqno}</if>
        </where>
    </select>
 
</mapper>