liusheng
2025-12-28 73f5b82df781d2b061ba24d29182f6898b5535d9
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
<?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.ServiceDonatebaseinfoReportFileMapper">
 
    <resultMap type="com.ruoyi.project.domain.ServiceDonatebaseinfoReportFile"
               id="ServiceDonatebaseinfoReportFileResult">
        <result property="id" column="id"/>
        <result property="donatebaseinfoReportId" column="donatebaseinfo_report_id"/>
        <result property="caseNo" column="case_no"/>
        <result property="fileName" column="file_name"/>
        <result property="type" column="type"/>
        <result property="path" column="path"/>
        <result property="remart" column="remart"/>
        <result property="delFlag" column="del_flag"/>
        <result property="createTime" column="create_time"/>
        <result property="createBy" column="create_by"/>
        <result property="updateTime" column="update_time"/>
        <result property="updateBy" column="update_by"/>
    </resultMap>
 
    <sql id="selectServiceDonatebaseinfoReportFileVo">
        select id,
               donatebaseinfo_report_id,
               case_no,
               file_name,
               type,
               path,
               remart,
               del_flag,
               create_time,
               create_by,
               update_time,
               update_by
        from service_donatebaseinfo_report_file
    </sql>
 
    <select id="selectServiceDonatebaseinfoReportFileList"
            parameterType="com.ruoyi.project.domain.ServiceDonatebaseinfoReportFile"
            resultMap="ServiceDonatebaseinfoReportFileResult">
        <include refid="selectServiceDonatebaseinfoReportFileVo"/>
        <where>
            <if test="donatebaseinfoReportId != null  and donatebaseinfoReportId != ''">and donatebaseinfo_report_id =
                #{donatebaseinfoReportId}
            </if>
            <if test="type != null  and type != ''">and type = #{type}</if>
            <if test="fileName != null  and fileName != ''">and file_name = #{fileName}</if>
            <if test="caseNo != null  and caseNo != ''">and case_no = #{caseNo}</if>
            <if test="path != null  and path != ''">and path = #{path}</if>
            <if test="remart != null  and remart != ''">and remart = #{remart}</if>
        </where>
    </select>
 
</mapper>