package cn.iocoder.yudao.module.mes.dal.dataobject.dv.metering;
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
import cn.iocoder.yudao.module.mes.enums.DictTypeConstants;
|
import com.baomidou.mybatisplus.annotation.KeySequence;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
|
import java.time.LocalDate;
|
|
/**
|
* MES 计量器具 DO
|
*
|
* @author 超级管理员
|
*/
|
@TableName("mes_dv_metering")
|
@KeySequence("mes_dv_metering_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class MesDvMeteringDO extends BaseDO {
|
|
/**
|
* 编号
|
*/
|
@TableId
|
private Long id;
|
/**
|
* 计量器具编码
|
*/
|
private String code;
|
/**
|
* 计量器具名称
|
*/
|
private String name;
|
/**
|
* 规格型号
|
*/
|
private String specification;
|
/**
|
* 品牌/生产厂家
|
*/
|
private String brand;
|
/**
|
* 器具类别
|
*
|
* 字典 {@link DictTypeConstants#MES_DV_METERING_CATEGORY}
|
*/
|
private Integer category;
|
/**
|
* 精度
|
*/
|
@TableField("`precision`")
|
private String precision;
|
/**
|
* 量程
|
*/
|
@TableField("`range`")
|
private String range;
|
/**
|
* 使用部门编号
|
*/
|
private Long deptId;
|
/**
|
* 责任人编号
|
*/
|
private Long chargeUserId;
|
/**
|
* 校准周期(月)
|
*/
|
private Integer checkCycleCount;
|
/**
|
* 投入使用日期
|
*/
|
private LocalDate useDate;
|
/**
|
* 上次检测日期
|
*/
|
private LocalDate lastCheckDate;
|
/**
|
* 下次检测日期(到期日)
|
*/
|
private LocalDate nextCheckDate;
|
/**
|
* 状态
|
*
|
* 字典 {@link DictTypeConstants#MES_DV_METERING_STATUS}
|
*/
|
private Integer status;
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|