修改船牌识别

This commit is contained in:
2025-12-26 01:41:59 +08:00
parent 6d99238e80
commit acb81d3b4d

View File

@@ -70,9 +70,9 @@ public class VideoIdentificationServiceImpl extends ServiceImpl<VideoIdentificat
queryWrapper.le("take_time", videoIdentificationDto.getEndTime()); queryWrapper.le("take_time", videoIdentificationDto.getEndTime());
} }
if (!ObjectUtils.isEmpty(videoIdentificationDto.getIsHasBoatName()) && videoIdentificationDto.getIsHasBoatName().equals(1)){ if (!ObjectUtils.isEmpty(videoIdentificationDto.getIsHasBoatName()) && videoIdentificationDto.getIsHasBoatName().equals(1)){
queryWrapper.ne("boat_name", "无船号"); queryWrapper.notIn("boat_name", "无船号","未知","");
}else if (!ObjectUtils.isEmpty(videoIdentificationDto.getIsHasBoatName()) && videoIdentificationDto.getIsHasBoatName().equals(2)){ }else if (!ObjectUtils.isEmpty(videoIdentificationDto.getIsHasBoatName()) && videoIdentificationDto.getIsHasBoatName().equals(2)){
queryWrapper.eq("boat_name", "无船号"); queryWrapper.in("boat_name", "无船号","未知","");
} }
queryWrapper.orderByDesc("take_time"); queryWrapper.orderByDesc("take_time");
IPage<VideoIdentification> pageResult = baseMapper.selectPage(pageParam, queryWrapper); IPage<VideoIdentification> pageResult = baseMapper.selectPage(pageParam, queryWrapper);