济菏高速数据中心代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

311 lines
7.9 KiB

package com.zc.business.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.utils.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
import java.util.Date;
/**
* 中间库 设备对象 device
*
* @author ruoyi
* @date 2024-02-21
*/
public class MdDevice
{
/** 主键 */
private Long id;
/** 设备id */
@Excel(name = "设备id")
private String devNo;
/** 设备名称 */
@Excel(name = "设备名称")
private String devName;
/** 所在桩号 */
@Excel(name = "所在桩号")
private String stakeNum;
/** 方向1-上行,2-中,3-下行 */
@Excel(name = "方向1-上行,2-中,3-下行")
private String direction;
/** 设备类型
1 摄像机
2 可变信息标志
3 气象监测器
4 出口诱导灯
5 路段语音广播
6 护栏碰撞
7 毫米波雷达
8 合流区预警
9 智慧锥桶
10 激光疲劳唤醒
11 一类交通量调查站
12 行车诱导
13 智能设备箱
14 光线在线监测
*/
@Excel(name = "设备类型")
private String typeCode;
/** 设施归属类型(0:默认1: 道路沿线2:桥梁3: 隧道4:收费广场5: 收费站6: 服务区等 */
@Excel(name = "设施归属类型(0:默认1: 道路沿线2:桥梁3: 隧道4:收费广场5: 收费站6: 服务区等 ")
private String facilitiesType;
/** 设备状态:0-异常,1-正常 */
@Excel(name = "设备状态:0-异常,1-正常")
private String devStatus;
/** 所属机构id */
@Excel(name = "所属机构id")
private String opmaManagerId;
/** 所属机构名称 */
@Excel(name = "所属机构名称")
private String opmaManagerName;
/** 所属厂商 */
@Excel(name = "所属厂商")
private String supplierName;
/** 所属路段 */
@Excel(name = "所属路段")
private String sectionId;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date creationTime;
/** 创建人 */
@Excel(name = "创建人")
private Long creatorUserId;
/** 最后修改时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date lastModificationTime;
/** 最后修改人 */
@Excel(name = "最后修改人")
private Long lastModifierUserId;
/** 是否删除 */
@Excel(name = "是否删除")
private Integer isDeleted;
/** 删除人 */
@Excel(name = "删除人")
private Long deleterUserId;
/** 删除时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date deletionTime;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public String getDevNo() {
return devNo;
}
public void setDevNo(String devNo) {
this.devNo = devNo;
}
public String getDevName() {
return devName;
}
public void setDevName(String devName) {
this.devName = devName;
}
public String getStakeNum() {
return stakeNum;
}
public void setStakeNum(String stakeNum) {
this.stakeNum = stakeNum;
}
public String getDirection() {
return direction;
}
public void setDirection(String direction) {
this.direction = direction;
}
public String getTypeCode() {
return typeCode;
}
public void setTypeCode(String typeCode) {
this.typeCode = typeCode;
}
public String getFacilitiesType() {
return facilitiesType;
}
public void setFacilitiesType(String facilitiesType) {
this.facilitiesType = facilitiesType;
}
public String getDevStatus() {
return devStatus;
}
public void setDevStatus(String devStatus) {
this.devStatus = devStatus;
}
public String getOpmaManagerId() {
return opmaManagerId;
}
public void setOpmaManagerId(String opmaManagerId) {
this.opmaManagerId = opmaManagerId;
}
public String getOpmaManagerName() {
return opmaManagerName;
}
public void setOpmaManagerName(String opmaManagerName) {
this.opmaManagerName = opmaManagerName;
}
public String getSupplierName() {
return supplierName;
}
public void setSupplierName(String supplierName) {
this.supplierName = supplierName;
}
public String getSectionId() {
return sectionId;
}
public void setSectionId(String sectionId) {
this.sectionId = sectionId;
}
public Date getCreationTime() {
return creationTime;
}
public void setCreationTime(Date creationTime) {
this.creationTime = creationTime;
}
public Long getCreatorUserId() {
return creatorUserId;
}
public void setCreatorUserId(Long creatorUserId) {
this.creatorUserId = creatorUserId;
}
public Date getLastModificationTime() {
return lastModificationTime;
}
public void setLastModificationTime(Date lastModificationTime) {
this.lastModificationTime = lastModificationTime;
}
public Long getLastModifierUserId() {
return lastModifierUserId;
}
public void setLastModifierUserId(Long lastModifierUserId) {
this.lastModifierUserId = lastModifierUserId;
}
public Integer getIsDeleted() {
return isDeleted;
}
public void setIsDeleted(Integer isDeleted) {
this.isDeleted = isDeleted;
}
public Long getDeleterUserId() {
return deleterUserId;
}
public void setDeleterUserId(Long deleterUserId) {
this.deleterUserId = deleterUserId;
}
public Date getDeletionTime() {
return deletionTime;
}
public void setDeletionTime(Date deletionTime) {
this.deletionTime = deletionTime;
}
@Override
public String toString() {
return new ToStringBuilder(this)
.append("id", id)
.append("devNo", devNo)
.append("devName", devName)
.append("stakeNum", stakeNum)
.append("direction", direction)
.append("typeCode", typeCode)
.append("facilitiesType", facilitiesType)
.append("devStatus", devStatus)
.append("opmaManagerId", opmaManagerId)
.append("opmaManagerName", opmaManagerName)
.append("supplierName", supplierName)
.append("sectionId", sectionId)
.append("creationTime", creationTime)
.append("creatorUserId", creatorUserId)
.append("lastModificationTime", lastModificationTime)
.append("lastModifierUserId", lastModifierUserId)
.append("isDeleted", isDeleted)
.append("deleterUserId", deleterUserId)
.append("deletionTime", deletionTime)
.toString();
}
public MdDevice(){}
public MdDevice(DcDevice dcDevice){
this.id = dcDevice.getId();
this.devNo = dcDevice.getIotDeviceId();
this.devName = dcDevice.getDeviceName();
this.stakeNum = dcDevice.getStakeMark();
this.direction = dcDevice.getDirection();
this.typeCode = dcDevice.getDeviceType().toString();
if (StringUtils.isNotEmpty(dcDevice.getFacilitiesType())){
this.facilitiesType = dcDevice.getFacilitiesType();
}
this.devStatus = dcDevice.getDeviceState();
if (dcDevice.getGroupId() > 0){
this.opmaManagerId = dcDevice.getGroupId().toString();
}
this.supplierName = dcDevice.getManufacturer();
}
}