linwe
2024-08-02 a1eede2f9f7c2590952ab1bdf34210020cdde7c6
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="org.springblade.modules.task.mapper.TaskRepairAppraiseMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="taskResultMap" type="org.springblade.modules.task.entity.TaskRepairAppraiseEntity">
    </resultMap>
 
 
    <select id="selectTaskRepairAppraisePage" resultMap="taskResultMap">
        select * from jczz_task_repair_appraise where is_deleted = 0
    </select>
 
    <resultMap type="org.springblade.modules.task.dto.TaskRepairAppraiseDTO" id="TaskRepairAppraiseDTOResult">
        <result property="id"    column="id"    />
        <result property="content"    column="content"    />
        <result property="createTime"    column="create_time"    />
        <result property="imageList"    column="image_list"    />
        <result property="point"    column="point"    />
        <result property="repairId"    column="repair_id"    />
        <result property="videoList"    column="video_list"    />
    </resultMap>
 
    <sql id="selectTaskRepairAppraise">
        select
            id,
            content,
            create_time,
            image_list,
            point,
            repair_id,
            video_list
        from
            jczz_task_repair_appraise
    </sql>
 
    <select id="selectTaskRepairAppraiseById" parameterType="int" resultMap="TaskRepairAppraiseDTOResult">
        <include refid="selectTaskRepairAppraise"/>
        where
        id = #{id}
    </select>
 
    <select id="selectTaskRepairAppraiseList" parameterType="org.springblade.modules.task.dto.TaskRepairAppraiseDTO" resultMap="TaskRepairAppraiseDTOResult">
        <include refid="selectTaskRepairAppraise"/>
        <where>
            <if test="id != null "> and id = #{id}</if>
            <if test="content != null  and content != ''"> and content = #{content}</if>
            <if test="createTime != null "> and create_time = #{createTime}</if>
            <if test="imageList != null  and imageList != ''"> and image_list = #{imageList}</if>
            <if test="point != null  and point != ''"> and point = #{point}</if>
            <if test="repairId != null "> and repair_id = #{repairId}</if>
            <if test="videoList != null  and videoList != ''"> and video_list = #{videoList}</if>
        </where>
    </select>
</mapper>