|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectArdVideoInspectTaskStepList" parameterType="ArdVideoInspectTaskStep" resultMap="ArdVideoInspectTaskStepResult"> | 
|---|
|  |  |  | <include refid="selectArdVideoInspectTaskStepVo"/> | 
|---|
|  |  |  | <where> | 
|---|
|  |  |  | <where> | 
|---|
|  |  |  | <if test="taskId != null  and taskId != ''"> and task_id = #{taskId}</if> | 
|---|
|  |  |  | <if test="deptId != null  and deptId != ''"> and dept_id = #{deptId}</if> | 
|---|
|  |  |  | <if test="userId != null  and userId != ''"> and user_id = #{userId}</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="recordingTime != null  and recordingTime != ''"> and recording_time = #{recordingTime}</if> | 
|---|
|  |  |  | <if test="wellId != null  and wellId != ''"> and well_id = #{wellId}</if> | 
|---|
|  |  |  | </where> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | <select id="selectByTaskId" parameterType="String"  resultType="java.util.HashMap"> | 
|---|
|  |  |  | select s.*, w.well_id as well_name | 
|---|
|  |  |  | from ard_video_inspect_task_step s, | 
|---|
|  |  |  | ard_alarmpoints_well w | 
|---|
|  |  |  | where s.task_id = #{taskId} | 
|---|
|  |  |  | and s.well_id = w.id | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectArdVideoInspectTaskStepByTaskId" parameterType="String" resultMap="ArdVideoInspectTaskStepResult"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <trim prefix="SET" suffixOverrides=","> | 
|---|
|  |  |  | <if test="deptId != null">dept_id = #{deptId},</if> | 
|---|
|  |  |  | <if test="userId != null">user_id = #{userId},</if> | 
|---|
|  |  |  | <if test="id != null">id = #{id},</if> | 
|---|
|  |  |  | <if test="orderNumber != null">order_number = #{orderNumber},</if> | 
|---|
|  |  |  | <if test="recordingTime != null">recording_time = #{recordingTime},</if> | 
|---|
|  |  |  | <if test="wellId != null">well_id = #{wellId},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | where task_id = #{taskId} | 
|---|
|  |  |  | where id = #{id} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <delete id="deleteArdVideoInspectTaskStepByTaskId" parameterType="String"> | 
|---|