| | |
| | | package com.ruoyi.constant; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: 全局类 |
| | |
| | | **/ |
| | | public class Global { |
| | | |
| | | //开启录像的任务列表 |
| | | public static List<String> task_record=new ArrayList<>(); |
| | | } |
| | |
| | | /** 用户id */ |
| | | @Excel(name = "用户id") |
| | | private String userId; |
| | | /** 井名称 */ |
| | | @Excel(name = "井名称") |
| | | private String wellName; |
| | | |
| | | public void setId(String id) |
| | | public String getWellName() { |
| | | return wellName; |
| | | } |
| | | |
| | | public void setWellName(String wellName) { |
| | | this.wellName = wellName; |
| | | } |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | |
| | | * @return 视频巡检记录集合 |
| | | */ |
| | | public List<ArdVideoInspectRecord> selectArdVideoInspectRecordList(ArdVideoInspectRecord ardVideoInspectRecord); |
| | | @SuppressWarnings("MybatisXMapperMethodInspection") |
| | | public List selectArdVideoInspectRecordListByStartTime(ArdVideoInspectRecord ardVideoInspectRecord); |
| | | |
| | | /** |
| | |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdVideoInspectRecordByIds(String[] ids); |
| | | |
| | | @SuppressWarnings("MybatisXMapperMethodInspection") |
| | | List selectArdVideoInspectRecordCountByStartMonth(String startMonth); |
| | | } |
| | |
| | | package com.ruoyi.inspect.mapper; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.ruoyi.inspect.domain.ArdVideoInspectTask; |
| | | import com.ruoyi.inspect.domain.ArdVideoInspectTaskStep; |
| | | |
| | |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdVideoInspectTaskStepByTaskId(String id); |
| | | |
| | | public List getTaskUsedCameraPeriods(String cameraId); |
| | | @SuppressWarnings("MybatisXMapperMethodInspection") |
| | | public List<Map<String,Object>> getTaskUsedCameraPeriods(String cameraId); |
| | | } |
| | |
| | | } |
| | | ardVideoInspectTask.setCurrentStepId(""); |
| | | ardVideoInspectTask.setCurrentStepStartTime(""); |
| | | ardVideoInspectTaskMapper.updateArdVideoInspectTask(ardVideoInspectTask); |
| | | ardVideoInspectTaskMapper.updateArdVideoInspectTaskWithCurrentSetpInfo(ardVideoInspectTask); |
| | | } |
| | | } |
| | | |
| | |
| | | /*插入巡检记录*/ |
| | | ArdVideoInspectRecord ardVideoInspectRecord = new ArdVideoInspectRecord(); |
| | | ardVideoInspectRecord.setStepId(step.getId()); |
| | | ArdAlarmpointsWell ardAlarmpointsWell = ardAlarmpointsWellMapper.selectArdAlarmpointsWellById(step.getWellId()); |
| | | if(StringUtils.isNotNull(ardAlarmpointsWell)) |
| | | { |
| | | ardVideoInspectRecord.setWellName(ardAlarmpointsWell.getWellId()); |
| | | } |
| | | Date currentStepStartDate = DateUtils.dateTime(DateUtils.YYYY_MM_DD_HH_MM_SS, currentStepStartTime); |
| | | Date currentStepStopDate = DateUtils.addMinutes(currentStepStartDate, step.getRecordingTime()); |
| | | ardVideoInspectRecord.setStartTime(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, currentStepStartDate)); |
| | |
| | | <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> |
| | | |
| | |
| | | </insert> |
| | | |
| | | <!--查询任务中相机已使用时段--> |
| | | <select id="getTaskUsedCameraPeriods" parameterType="String" resultType="java.util.List"> |
| | | <select id="getTaskUsedCameraPeriods" parameterType="String" resultType="java.util.HashMap"> |
| | | select t.start_time,t.end_time from ard_video_inspect_task t |
| | | where t.camera_id=#{startMonth} |
| | | ORDER BY t.start_time |