package cn.iocoder.yudao.module.mes.dal.dataobject.safety;
|
|
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.time.LocalDate;
|
|
/**
|
* 安全生产 - 安全资格证书 DO
|
*
|
* 特种作业操作证、安全管理人员证等,含有效期用于到期提醒
|
*
|
* @author 超级管理员
|
*/
|
@TableName("mes_safety_certificate")
|
@KeySequence("mes_safety_certificate_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class MesSafetyCertificateDO extends BaseDO {
|
|
/** 状态:有效 */
|
public static final Integer STATUS_VALID = 1;
|
/** 状态:已作废 */
|
public static final Integer STATUS_INVALID = 0;
|
|
@TableId
|
private Long id;
|
|
/**
|
* 持证人编号
|
*/
|
private Long userId;
|
|
/**
|
* 所属部门编号
|
*/
|
private Long deptId;
|
|
/**
|
* 证书类型
|
*
|
* 字典 mes_safety_cert_type:1特种作业操作证 2安全管理人员证 3主要负责人证 4其他资格证
|
*/
|
private Integer certType;
|
|
/**
|
* 证书编号
|
*/
|
private String certNo;
|
|
/**
|
* 发证机关
|
*/
|
private String issueOrg;
|
|
/**
|
* 发证日期
|
*/
|
private LocalDate issueDate;
|
|
/**
|
* 有效期至(为空表示长期有效)
|
*/
|
private LocalDate expireDate;
|
|
/**
|
* 状态:1有效 0已作废
|
*/
|
private Integer status;
|
|
/**
|
* 证书扫描件地址
|
*/
|
private String attachmentUrl;
|
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|