<?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>
|