| | |
| | | <include refid="selectArdVideoInspectRecordVo"/> |
| | | <where> |
| | | <if test="startTime != null and startTime != ''"> and start_time = #{startTime}</if> |
| | | <if test="endTime != null and endTime != ''"> and end_time = #{endTime}</if> |
| | | <if test="endTime != null and endTime != ''"> and end_time = #{ejava.util.HashMapndTime}</if> |
| | | <if test="recordFilePath != null and recordFilePath != ''"> and record_file_path = #{recordFilePath}</if> |
| | | <if test="stepId != null and stepId != ''"> and step_id = #{stepId}</if> |
| | | <if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if> |
| | |
| | | </select> |
| | | <!--按日期查询--> |
| | | <select id="selectArdVideoInspectRecordListByStartTime" parameterType="ArdVideoInspectRecord" resultType="java.util.HashMap"> |
| | | <include refid="selectArdVideoInspectRecordVo"/> |
| | | <where> |
| | | <if test="startTime != null and startTime != ''">and start_time like ('${startTime}%')</if> |
| | | <if test="stepId != null and stepId != ''">and step_id = #{stepId}</if> |
| | | </where> |
| | | select r.*,s.well_id,w.well_id as well_name from ard_video_inspect_record r ,ard_video_inspect_task_step |
| | | s,ard_alarmpoints_well w where start_time like ('${startTime}%') and r.step_id = s.id and s.well_id = w.id |
| | | order by start_time desc |
| | |
| | | <if test="stepId != null">step_id,</if> |
| | | <if test="deptId != null">dept_id,</if> |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="wellName != null">well_name,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | |
| | | <if test="stepId != null">#{stepId},</if> |
| | | <if test="deptId != null">#{deptId},</if> |
| | | <if test="userId != null">#{userId},</if> |
| | | <if test="wellName != null">#{wellName},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="stepId != null">step_id = #{stepId},</if> |
| | | <if test="deptId != null">dept_id = #{deptId},</if> |
| | | <if test="userId != null">user_id = #{userId},</if> |
| | | <if test="wellName != null">well_name = #{wellName},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |