|
|
@@ -23,8 +23,14 @@ public class IotServiceImpl implements IotService {
|
|
|
|
|
|
@Override
|
|
|
public Integer selectVideoDayExceptionChannelNums(Long orgId) {
|
|
|
+ LambdaQueryWrapper<IotDvrChannel> channelWrapper = new LambdaQueryWrapper<>();
|
|
|
+ channelWrapper.eq(IotDvrChannel::getOrgId, orgId);
|
|
|
+ if (channelMapper.selectCount(channelWrapper) < 1) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
//此处考虑录像完整性和录像天数,任意一个异常就算异常
|
|
|
- return videoDaysCheckMapper.selectExceptionCount(orgId);
|
|
|
+ int i= videoDaysCheckMapper.selectExceptionCount(orgId);
|
|
|
+ return i;
|
|
|
}
|
|
|
|
|
|
|