| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.ruoyi.common.utils.uuid.IdUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.inspect.mapper.ArdVideoInspectRecordMapper; |
| | | import com.ruoyi.inspect.domain.ArdVideoInspectRecord; |
| | | import com.ruoyi.inspect.service.IArdVideoInspectRecordService; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * 视频巡检记录Service业务层处理 |
| | |
| | | */ |
| | | @Service |
| | | public class ArdVideoInspectRecordServiceImpl implements IArdVideoInspectRecordService { |
| | | @Autowired |
| | | @Resource |
| | | private ArdVideoInspectRecordMapper ardVideoInspectRecordMapper; |
| | | |
| | | /** |
| | |
| | | return ardVideoInspectRecordMapper.selectArdVideoInspectRecordList(ardVideoInspectRecord); |
| | | } |
| | | |
| | | @Override |
| | | public List<HashMap> selectArdVideoInspectRecordListByStartTime(ArdVideoInspectRecord ardVideoInspectRecord) { |
| | | return ardVideoInspectRecordMapper.selectArdVideoInspectRecordListByStartTime(ardVideoInspectRecord); |
| | | } |
| | | |
| | | @Override |
| | | public List selectTaskRecordByStartTime(String taskId, String startTime) { |
| | | return ardVideoInspectRecordMapper.selectTaskRecordByStartTime(taskId,startTime); |
| | | } |
| | | |
| | | /** |
| | | * 按月份获取每日记录文件数量 |
| | | * |
| | | * @param startMonth |
| | | * @return |
| | | */ |
| | | public List<ArdVideoInspectRecord> selectArdVideoInspectRecordCountByStartMonth(String startMonth) { |
| | | return ardVideoInspectRecordMapper.selectArdVideoInspectRecordCountByStartMonth(startMonth); |
| | | } |
| | | |
| | | /** |
| | | * 新增视频巡检记录 |
| | | * |
| | |
| | | */ |
| | | @Override |
| | | public int insertArdVideoInspectRecord(ArdVideoInspectRecord ardVideoInspectRecord) { |
| | | // ardVideoInspectRecord.setUserId(SecurityUtils.getUserId()); |
| | | return ardVideoInspectRecordMapper.insertArdVideoInspectRecord(ardVideoInspectRecord); |
| | | // ardVideoInspectRecord.setUserId(SecurityUtils.getUserId()); |
| | | ardVideoInspectRecord.setId(IdUtils.simpleUUID()); |
| | | return ardVideoInspectRecordMapper.insertArdVideoInspectRecord(ardVideoInspectRecord); |
| | | } |
| | | |
| | | /** |