修改船牌识别
This commit is contained in:
@@ -17,6 +17,7 @@ import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
@@ -68,9 +69,9 @@ public class VideoIdentificationServiceImpl extends ServiceImpl<VideoIdentificat
|
||||
if (!StringUtils.isEmpty(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", "无船号");
|
||||
}else if (videoIdentificationDto.getIsHasBoatName().equals(2)){
|
||||
}else if (!ObjectUtils.isEmpty(videoIdentificationDto.getIsHasBoatName()) && videoIdentificationDto.getIsHasBoatName().equals(2)){
|
||||
queryWrapper.eq("boat_name", "无船号");
|
||||
}
|
||||
queryWrapper.orderByDesc("take_time");
|
||||
|
||||
Reference in New Issue
Block a user