|
|
@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.xunmei.common.core.constant.SecurityConstants;
|
|
|
import com.xunmei.common.core.domain.iot.domain.IotDvrChannel;
|
|
|
import com.xunmei.common.core.domain.video.MediatorVideoIntegrityCheck;
|
|
|
+import com.xunmei.common.core.enums.CategoryDataEnum;
|
|
|
import com.xunmei.common.core.enums.iot.VideoIntegrityStatus;
|
|
|
import com.xunmei.common.core.web.page.TableDataInfo;
|
|
|
import com.xunmei.iot.dto.videoDiagnosis.VideoDiagnosisAppPageDto;
|
|
|
@@ -46,6 +47,7 @@ public class VideoDiagnosisServiceImpl extends ServiceImpl<IotDvrChannelMapper,
|
|
|
SysOrg org = orgService.selectOrgById(request.getOrgId(), SecurityConstants.INNER);
|
|
|
orgPath = org.getPath();
|
|
|
}
|
|
|
+ request.setCategoryId(CategoryDataEnum.MONITOR_HOST_DEVICE.getId());
|
|
|
Page<VideoDiagnosisWebPageVo> page = request.toPage();
|
|
|
page = baseMapper.selectPage(page, request, orgPath);
|
|
|
|
|
|
@@ -62,6 +64,7 @@ public class VideoDiagnosisServiceImpl extends ServiceImpl<IotDvrChannelMapper,
|
|
|
|
|
|
Page<VideoDiagnosisAppPageVo> page = request.toPage();
|
|
|
|
|
|
+ request.setCategoryId(CategoryDataEnum.MONITOR_HOST_DEVICE.getId());
|
|
|
page = baseMapper.selectAppPage(page, request, orgPath);
|
|
|
page.getRecords().forEach(r -> {
|
|
|
if (ObjectUtil.isEmpty(r.getChannels())) {
|
|
|
@@ -92,7 +95,7 @@ public class VideoDiagnosisServiceImpl extends ServiceImpl<IotDvrChannelMapper,
|
|
|
LambdaQueryWrapper<MediatorVideoIntegrityCheck> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(MediatorVideoIntegrityCheck::getEquipmentCode, hostCode)
|
|
|
.eq(MediatorVideoIntegrityCheck::getChannelCode, channelCode)
|
|
|
- .le(MediatorVideoIntegrityCheck::getRecordDate, vo.getStorage().getEarliestTime())
|
|
|
+ .ge(MediatorVideoIntegrityCheck::getRecordDate, vo.getStorage().getEarliestTime())
|
|
|
.select(MediatorVideoIntegrityCheck::getRecordDate, MediatorVideoIntegrityCheck::getStatus);
|
|
|
Map<Integer, List<MediatorVideoIntegrityCheck>> days = videoIntegrityCheckMapper.selectList(wrapper)
|
|
|
.stream().collect(Collectors.groupingBy(d -> d.getStatus()));
|