package cn.iocoder.yudao.module.mes.dal.dataobject.em.meter;
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
import com.baomidou.mybatisplus.annotation.KeySequence;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDate;
|
|
/**
|
* MES 能耗计量点 DO
|
*
|
* 一个计量点可以挂在车间、产线或重点高耗能设备上,用于采集某一类能源的用量。
|
*
|
* @author 超级管理员
|
*/
|
@TableName("mes_em_meter")
|
@KeySequence("mes_em_meter_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class MesEmMeterDO extends BaseDO {
|
|
/**
|
* 编号
|
*/
|
@TableId
|
private Long id;
|
/**
|
* 计量点编码
|
*/
|
private String code;
|
/**
|
* 计量点名称
|
*/
|
private String name;
|
/**
|
* 能源类型
|
*
|
* 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmEnergyTypeEnum}
|
*/
|
private Integer energyType;
|
/**
|
* 计量单位
|
*/
|
private String unit;
|
/**
|
* 表号(现场表计编号)
|
*/
|
private String meterNo;
|
/**
|
* 所属车间编号
|
*/
|
private Long workshopId;
|
/**
|
* 所属车间名称
|
*/
|
private String workshopName;
|
/**
|
* 所属产线编号
|
*/
|
private Long lineId;
|
/**
|
* 所属产线名称
|
*/
|
private String lineName;
|
/**
|
* 关联设备编号
|
*/
|
private Long machineryId;
|
/**
|
* 关联设备名称
|
*/
|
private String machineryName;
|
/**
|
* 倍率(读数 × 倍率 = 实际用量)
|
*/
|
private BigDecimal ratio;
|
/**
|
* 初始读数
|
*/
|
private BigDecimal initialReading;
|
/**
|
* 折标煤系数(kgce/计量单位)
|
*/
|
private BigDecimal coalFactor;
|
/**
|
* 日用量异常上限(超过后触发疑似跑冒滴漏预警,为空表示不检测)
|
*/
|
private BigDecimal leakThreshold;
|
/**
|
* 责任人编号
|
*/
|
private Long chargeUserId;
|
/**
|
* 投用日期
|
*/
|
private LocalDate installDate;
|
/**
|
* 状态
|
*
|
* 枚举 {@link cn.iocoder.yudao.module.mes.enums.em.MesEmMeterStatusEnum}
|
*/
|
private Integer status;
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|