修改船牌识别

This commit is contained in:
2025-12-26 00:23:26 +08:00
parent d71bdf9ce9
commit 6d99238e80

View File

@@ -17,6 +17,7 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import java.math.BigDecimal; import java.math.BigDecimal;
@@ -68,9 +69,9 @@ public class VideoIdentificationServiceImpl extends ServiceImpl<VideoIdentificat
if (!StringUtils.isEmpty(videoIdentificationDto.getEndTime())) { if (!StringUtils.isEmpty(videoIdentificationDto.getEndTime())) {
queryWrapper.le("take_time", videoIdentificationDto.getEndTime()); queryWrapper.le("take_time", videoIdentificationDto.getEndTime());
} }
if (videoIdentificationDto.getIsHasBoatName().equals(1)){ if (!ObjectUtils.isEmpty(videoIdentificationDto.getIsHasBoatName()) && videoIdentificationDto.getIsHasBoatName().equals(1)){
queryWrapper.ne("boat_name", "无船号"); queryWrapper.ne("boat_name", "无船号");
}else if (videoIdentificationDto.getIsHasBoatName().equals(2)){ }else if (!ObjectUtils.isEmpty(videoIdentificationDto.getIsHasBoatName()) && videoIdentificationDto.getIsHasBoatName().equals(2)){
queryWrapper.eq("boat_name", "无船号"); queryWrapper.eq("boat_name", "无船号");
} }
queryWrapper.orderByDesc("take_time"); queryWrapper.orderByDesc("take_time");