zhongrj
2024-03-20 4759cadeca91e4ddcf374fb29fc9f8b91bedec11
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
<?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.TaskRepairStepMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="taskResultMap" type="org.springblade.modules.task.entity.TaskRepairStepEntity">
    </resultMap>
 
 
    <select id="selectTaskRepairStepPage" resultMap="taskResultMap">
        select * from jczz_task_repair_step where is_deleted = 0
    </select>
 
 
    <resultMap type="org.springblade.modules.task.dto.TaskRepairStepDTO" id="TaskRepairStepDTOResult">
        <result property="id"    column="id"    />
        <result property="repairId"    column="repair_id"    />
        <result property="content"    column="content"    />
        <result property="videoList"    column="video_list"    />
        <result property="name"    column="name"    />
        <result property="mobile"    column="mobile"    />
        <result property="userId"    column="user_id"    />
        <result property="peopleType"    column="people_type"    />
        <result property="createTime"    column="create_time"    />
        <result property="updateTime"    column="update_time"    />
        <result property="imageList"    column="image_list"    />
    </resultMap>
 
    <sql id="selectTaskRepairStep">
        select
            id,
            repair_id,
            content,
            video_list,
            name,
            mobile,
            user_id,
            people_type,
            create_time,
            update_time,
            image_list
        from
            jczz_task_repair_step
    </sql>
 
    <select id="selectTaskRepairStepById" parameterType="int" resultMap="TaskRepairStepDTOResult">
        <include refid="selectTaskRepairStep"/>
        where
        id = #{id}
    </select>
 
    <select id="selectTaskRepairStepList" parameterType="org.springblade.modules.task.dto.TaskRepairStepDTO" resultMap="TaskRepairStepDTOResult">
        <include refid="selectTaskRepairStep"/>
        <where>
            <if test="id != null "> and id = #{id}</if>
            <if test="repairId != null "> and repair_id = #{repairId}</if>
            <if test="content != null  and content != ''"> and content = #{content}</if>
            <if test="videoList != null  and videoList != ''"> and video_list = #{videoList}</if>
            <if test="name != null  and name != ''"> and name = #{name}</if>
            <if test="mobile != null  and mobile != ''"> and mobile = #{mobile}</if>
            <if test="userId != null "> and user_id = #{userId}</if>
            <if test="peopleType != null  and peopleType != ''"> and people_type = #{peopleType}</if>
            <if test="createTime != null "> and create_time = #{createTime}</if>
            <if test="updateTime != null "> and update_time = #{updateTime}</if>
            <if test="imageList != null  and imageList != ''"> and image_list = #{imageList}</if>
        </where>
    </select>
</mapper>