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;
|
import java.time.LocalDateTime;
|
|
/**
|
* 安全生产 - 隐患排查台账 DO
|
*
|
* 状态流转:
|
* 0 待整改 ──提交整改──> 20 待验收 ──验收通过──> 30 已闭环
|
* └──验收驳回──> 10 整改中(重新整改)
|
*
|
* @author 超级管理员
|
*/
|
@TableName("mes_safety_hazard")
|
@KeySequence("mes_safety_hazard_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class MesSafetyHazardDO extends BaseDO {
|
|
/** 状态:待整改 */
|
public static final Integer STATUS_PENDING = 0;
|
/** 状态:整改中(验收驳回后回到此状态) */
|
public static final Integer STATUS_RECTIFYING = 10;
|
/** 状态:待验收 */
|
public static final Integer STATUS_TO_CHECK = 20;
|
/** 状态:已闭环 */
|
public static final Integer STATUS_CLOSED = 30;
|
|
@TableId
|
private Long id;
|
|
/**
|
* 隐患编码
|
*/
|
private String code;
|
|
/**
|
* 隐患名称 / 简述
|
*/
|
private String name;
|
|
/**
|
* 隐患来源
|
*
|
* 字典 mes_safety_hazard_source:1日常排查 2专项检查 3上级检查 4员工上报 5其他
|
*/
|
private Integer source;
|
|
/**
|
* 隐患等级
|
*
|
* 字典 mes_safety_hazard_level:1一般隐患 2重大隐患
|
*/
|
private Integer hazardLevel;
|
|
/**
|
* 隐患类别
|
*
|
* 复用 mes_safety_risk_category
|
*/
|
private Integer category;
|
|
/**
|
* 关联风险单元编号
|
*/
|
private Long unitId;
|
|
/**
|
* 关联风险清单编号
|
*/
|
private Long riskId;
|
|
/**
|
* 所属车间编号
|
*/
|
private Long workshopId;
|
|
/**
|
* 具体位置
|
*/
|
private String location;
|
|
/**
|
* 隐患描述
|
*/
|
private String description;
|
|
/**
|
* 发现日期
|
*/
|
private LocalDate foundDate;
|
|
/**
|
* 发现人编号
|
*/
|
private Long founderUserId;
|
|
/**
|
* 整改责任人编号
|
*/
|
private Long chargeUserId;
|
|
/**
|
* 整改期限
|
*/
|
private LocalDate deadline;
|
|
/**
|
* 整改要求
|
*/
|
private String rectifyRequirement;
|
|
/**
|
* 状态:0待整改 10整改中 20待验收 30已闭环
|
*/
|
private Integer status;
|
|
/**
|
* 整改措施
|
*/
|
private String measure;
|
|
/**
|
* 整改完成日期
|
*/
|
private LocalDate finishDate;
|
|
/**
|
* 验收人编号
|
*/
|
private Long checkUserId;
|
|
/**
|
* 验收时间
|
*/
|
private LocalDateTime checkTime;
|
|
/**
|
* 验收意见
|
*/
|
private String checkResult;
|
|
/**
|
* 验收驳回原因
|
*/
|
private String rejectReason;
|
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|