package com.ycl.platform.domain.vo;
|
|
import com.ycl.platform.base.AbsVo;
|
import com.ycl.platform.domain.entity.YwPoint;
|
|
import java.time.LocalDateTime;
|
import java.util.List;
|
import org.springframework.lang.NonNull;
|
import org.springframework.beans.BeanUtils;
|
import lombok.Data;
|
import lombok.experimental.Accessors;
|
|
/**
|
* 运维点位展示
|
*
|
* @author xp
|
* @since 2024-03-05
|
*/
|
@Data
|
@Accessors(chain = true)
|
public class YwPointVO extends AbsVo {
|
|
/** 点位名称 */
|
private String pointName;
|
|
/** 点位开始时间 */
|
private LocalDateTime startTime;
|
|
/** 点位结束时间 */
|
private LocalDateTime endTime;
|
|
/** 运维单位 */
|
private Long unitId;
|
private String unitName;
|
|
/** 运维状态 */
|
private String status;
|
|
/** 备注 */
|
private String remark;
|
|
private Short category;
|
|
/** 监管部门 */
|
private Long deptId;
|
private List<Long> deptIds;
|
private String deptName;
|
|
/** 点位标签 */
|
private String [] pointTags;
|
private String pointTagString;
|
|
public static YwPointVO getVoByEntity(@NonNull YwPoint entity, YwPointVO vo) {
|
if(vo == null) {
|
vo = new YwPointVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|