修改有无船号接口

This commit is contained in:
2025-12-25 22:20:03 +08:00
parent 46e2c63619
commit d71bdf9ce9
4 changed files with 119 additions and 1 deletions

View File

@@ -102,6 +102,8 @@ public class VideoIdentificationDto implements Serializable {
@ExcelProperty(value = "识别类型")
@ApiModelProperty(value = "识别类型(船脸识别、船牌识别)")
private String identificationType;
@ApiModelProperty(value = "是否有船号 1:有 2:没有")
private Integer isHasBoatName;
@ApiModelProperty("页容量")
private Integer pageSize;

View File

@@ -68,6 +68,11 @@ public class VideoIdentificationServiceImpl extends ServiceImpl<VideoIdentificat
if (!StringUtils.isEmpty(videoIdentificationDto.getEndTime())) {
queryWrapper.le("take_time", videoIdentificationDto.getEndTime());
}
if (videoIdentificationDto.getIsHasBoatName().equals(1)){
queryWrapper.ne("boat_name", "无船号");
}else if (videoIdentificationDto.getIsHasBoatName().equals(2)){
queryWrapper.eq("boat_name", "无船号");
}
queryWrapper.orderByDesc("take_time");
IPage<VideoIdentification> pageResult = baseMapper.selectPage(pageParam, queryWrapper);
List<VideoIdentification> videoIdentifications = pageResult.getRecords();