修改视频相关内容,并于梦蛟联调,以保证CCTV轮询相关内容的正常使用
This commit is contained in:
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import com.ltgk.smartFishingPort.common.core.controller.BaseController;
|
import com.ltgk.smartFishingPort.common.core.controller.BaseController;
|
||||||
import com.ltgk.smartFishingPort.common.core.domain.AjaxResult;
|
import com.ltgk.smartFishingPort.common.core.domain.AjaxResult;
|
||||||
|
import com.ltgk.smartFishingPort.common.core.page.TableDataInfo;
|
||||||
import com.ltgk.smartFishingPort.common.utils.MybatisUtil;
|
import com.ltgk.smartFishingPort.common.utils.MybatisUtil;
|
||||||
import com.ltgk.smartFishingPort.common.utils.StringUtils;
|
import com.ltgk.smartFishingPort.common.utils.StringUtils;
|
||||||
import com.ltgk.smartFishingPort.domain.dto.DsArtemisDTO;
|
import com.ltgk.smartFishingPort.domain.dto.DsArtemisDTO;
|
||||||
@@ -54,7 +55,7 @@ public class DsVideoController extends BaseController {
|
|||||||
|
|
||||||
@ApiOperation(value = "查询列表数据")
|
@ApiOperation(value = "查询列表数据")
|
||||||
@PostMapping("/getList")
|
@PostMapping("/getList")
|
||||||
public Object getList(@RequestBody DsVideo dsVideo) {
|
public AjaxResult getList(@RequestBody DsVideo dsVideo) {
|
||||||
QueryWrapper<DsVideo> queryWrapper = MybatisUtil.notNullField(dsVideo);
|
QueryWrapper<DsVideo> queryWrapper = MybatisUtil.notNullField(dsVideo);
|
||||||
List<DsVideo> list = dsVideoService.list(queryWrapper);
|
List<DsVideo> list = dsVideoService.list(queryWrapper);
|
||||||
return success(list);
|
return success(list);
|
||||||
@@ -80,7 +81,7 @@ public class DsVideoController extends BaseController {
|
|||||||
|
|
||||||
@ApiOperation(value = "分页查询")
|
@ApiOperation(value = "分页查询")
|
||||||
@PostMapping("/page")
|
@PostMapping("/page")
|
||||||
public Object page(@RequestBody DsVideo dsVideo) {
|
public TableDataInfo page(@RequestBody DsVideo dsVideo) {
|
||||||
QueryWrapper<DsVideo> queryWrapper = MybatisUtil.notNullField(dsVideo);
|
QueryWrapper<DsVideo> queryWrapper = MybatisUtil.notNullField(dsVideo);
|
||||||
startPage(dsVideo.getPageNum(), dsVideo.getPageSize());
|
startPage(dsVideo.getPageNum(), dsVideo.getPageSize());
|
||||||
List<DsVideo> list = dsVideoService.list(queryWrapper);
|
List<DsVideo> list = dsVideoService.list(queryWrapper);
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.*;
|
|||||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -12,6 +13,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import javax.validation.constraints.Min;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@@ -33,8 +35,8 @@ public class DsVideo extends Model<DsVideo> {
|
|||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@ApiModelProperty(value = "主键")
|
@ApiModelProperty(value = "主键")
|
||||||
@TableId(value = "id", type = IdType.ASSIGN_ID)
|
@TableId(value = "id", type = IdType.AUTO)
|
||||||
private String id;
|
private Long id;
|
||||||
|
|
||||||
@ApiModelProperty(value = "监控编号")
|
@ApiModelProperty(value = "监控编号")
|
||||||
@TableField(value = "video_code", condition = SqlCondition.LIKE)
|
@TableField(value = "video_code", condition = SqlCondition.LIKE)
|
||||||
@@ -147,19 +149,18 @@ public class DsVideo extends Model<DsVideo> {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "行政区域名称")
|
@ApiModelProperty(value = "行政区域名称")
|
||||||
private String areaName;
|
private String areaName;
|
||||||
/**
|
|
||||||
* 页容量
|
|
||||||
*/
|
|
||||||
@TableField(exist = false)
|
|
||||||
@JsonIgnore
|
|
||||||
private Integer pageSize;
|
|
||||||
|
|
||||||
/**
|
@JsonProperty(value = "pageNum")
|
||||||
* 页码
|
@ApiModelProperty(value = "页码")
|
||||||
*/
|
@Min(value = 1, message = "页码必须大于0")
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@JsonIgnore
|
private Integer pageNum = 1;
|
||||||
private Integer pageNum;
|
|
||||||
|
@JsonProperty(value = "pageSize")
|
||||||
|
@ApiModelProperty(value = "页长")
|
||||||
|
@Min(value = 1, message = "页长必须大于0")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Integer pageSize = 15;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 热成像设备最大变倍参数
|
* 热成像设备最大变倍参数
|
||||||
@@ -236,7 +237,15 @@ public class DsVideo extends Model<DsVideo> {
|
|||||||
@TableField(value = "whether_to_turn_on_the_view")
|
@TableField(value = "whether_to_turn_on_the_view")
|
||||||
private Integer whetherToTurnOnTheView;
|
private Integer whetherToTurnOnTheView;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "是否轮询:0-否,1-是")
|
||||||
|
@TableField(value = "be_play")
|
||||||
|
private Integer bePlay;
|
||||||
|
|
||||||
@ApiModelProperty(value = "轮询顺序,页面轮询使用")
|
@ApiModelProperty(value = "轮询顺序,页面轮询使用")
|
||||||
@TableField(value = "play_index")
|
@TableField(value = "play_index")
|
||||||
private Integer playIndex;
|
private Integer playIndex;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "摄像头轮询时间")
|
||||||
|
@TableField(value = "play_time")
|
||||||
|
private Integer playTime;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -349,7 +349,7 @@ public class DsVideoServiceImpl extends ServiceImpl<DsVideoMapper, DsVideo> impl
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public DsVideo getVideoInfo(DsVideo dsVideo) {
|
public DsVideo getVideoInfo(DsVideo dsVideo) {
|
||||||
DsVideo dbDsVideo = dsVideoService.getById(Long.parseLong(dsVideo.getId()));
|
DsVideo dbDsVideo = dsVideoService.getById(dsVideo.getId());
|
||||||
|
|
||||||
return getDsVideoPTZ(dbDsVideo);
|
return getDsVideoPTZ(dbDsVideo);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,8 @@
|
|||||||
<result property="beLock" column="be_lock"/>
|
<result property="beLock" column="be_lock"/>
|
||||||
<result property="whetherToTurnOnTheView" column="whether_to_turn_on_the_view"/>
|
<result property="whetherToTurnOnTheView" column="whether_to_turn_on_the_view"/>
|
||||||
<result property="playIndex" column="play_index"/>
|
<result property="playIndex" column="play_index"/>
|
||||||
|
<result property="bePlay" column="be_play"/>
|
||||||
|
<result property="playTime" column="play_time"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user