package cn.iocoder.yudao.module.mes.dal.dataobject.dv.meteringcheck;
|
|
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.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
|
import java.time.LocalDate;
|
|
/**
|
* MES 计量检测记录 DO
|
*
|
* @author 超级管理员
|
*/
|
@TableName("mes_dv_metering_check")
|
@KeySequence("mes_dv_metering_check_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class MesDvMeteringCheckDO extends BaseDO {
|
|
/**
|
* 编号
|
*/
|
@TableId
|
private Long id;
|
/**
|
* 计量器具编号
|
*
|
* 关联 {@link cn.iocoder.yudao.module.mes.dal.dataobject.dv.metering.MesDvMeteringDO#getId()}
|
*/
|
private Long meteringId;
|
/**
|
* 检测编号
|
*/
|
private String checkCode;
|
/**
|
* 检测日期
|
*/
|
private LocalDate checkDate;
|
/**
|
* 检测机构
|
*/
|
private String checkOrg;
|
/**
|
* 检测结论
|
*
|
* 字典 {@link DictTypeConstants#MES_DV_METERING_CHECK_RESULT}
|
*/
|
private Integer checkResult;
|
/**
|
* 证书编号
|
*/
|
private String certNo;
|
/**
|
* 检测人编号
|
*/
|
private Long checkUserId;
|
/**
|
* 下次检测日期(自动计算或手动指定)
|
*/
|
private LocalDate nextCheckDate;
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|