package com.ycl.platform.domain.vo;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ycl.platform.base.AbsVo;
|
import com.ycl.platform.domain.entity.YwPoint;
|
|
import java.util.Date;
|
import java.util.List;
|
|
import org.springframework.lang.NonNull;
|
import org.springframework.beans.BeanUtils;
|
import lombok.Data;
|
|
/**
|
* 运维点位展示
|
*
|
* @author xp
|
* @since 2024-03-05
|
*/
|
@Data
|
public class YwPointVO extends AbsVo {
|
|
/** 点位名称 */
|
private String pointName;
|
|
/** 点位开始时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date startTime;
|
|
/** 点位结束时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date endTime;
|
|
/** 运维单位 */
|
private Long unitId;
|
private String unitName;
|
|
/** 运维状态 */
|
private String status;
|
|
/** 备注 */
|
private String remark;
|
|
/** 监管部门 */
|
private Long deptId;
|
private List<Long> deptIds;
|
private String deptName;
|
|
/** 重点点位标签 */
|
private Boolean importantTag;
|
|
/** 省厅点位标签 */
|
private Boolean provinceTagVideo;
|
private Boolean provinceTagCar;
|
private Boolean provinceTagFace;
|
|
/** 重点指挥图像标签 */
|
private Boolean importantCommandImageTag;
|
|
/** 部级标签 */
|
private Boolean deptTag;
|
|
/** 国标码 */
|
private String serialNumber;
|
|
/**
|
* 动态列
|
*/
|
private List<DynamicColumnVO> dynamicColumnList;
|
|
public static YwPointVO getVoByEntity(@NonNull YwPoint entity, YwPointVO vo) {
|
if(vo == null) {
|
vo = new YwPointVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|