package com.ycl.platform.domain.vo;
|
|
import com.ycl.platform.base.AbsVo;
|
import com.ycl.platform.domain.entity.DeviceInfo;
|
import org.springframework.lang.NonNull;
|
import org.springframework.beans.BeanUtils;
|
import lombok.Data;
|
import java.util.Date;
|
|
/**
|
* 国标级联同步数据展示
|
*
|
* @author xp
|
* @since 2024-08-21
|
*/
|
@Data
|
public class DeviceInfoVO extends AbsVo {
|
|
/** 工单ID */
|
private Integer workOrderId;
|
|
/** 工单号 */
|
private String workOrderNo;
|
|
/** 设备编号/国标码 */
|
private String deviceId;
|
|
/** 设备通道ID */
|
private String channelId;
|
|
/** 创建时间 */
|
private Date createTime;
|
|
public static DeviceInfoVO getVoByEntity(@NonNull DeviceInfo entity, DeviceInfoVO vo) {
|
if(vo == null) {
|
vo = new DeviceInfoVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|