修改有无船号接口
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user