package cn.iocoder.yudao.module.mes.dal.dataobject.safety;
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
/**
|
* 安全生产 - 事故登记 DO
|
*
|
* @author 超级管理员
|
*/
|
@TableName("safety_accident")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
public class SafetyAccidentDO extends BaseDO {
|
|
@TableId
|
private Long id;
|
/** 事故编号 */
|
private String code;
|
/** 事故名称 */
|
private String title;
|
/** 事故类型,见 SafetyAccidentTypeEnum */
|
private String accidentType;
|
/** 事故等级,见 SafetyAccidentLevelEnum */
|
private String level;
|
/** 发生时间 */
|
private LocalDateTime occurTime;
|
/** 发生地点 */
|
private String location;
|
/** 所属车间(关联 mes_md_workshop.id) */
|
private Long workshopId;
|
/** 所属车间名称(快照,由车间主数据带出) */
|
private String workshopName;
|
/** 伤亡情况 */
|
private String casualtyDesc;
|
/** 直接经济损失(元) */
|
private BigDecimal economicLoss;
|
/** 涉事人员姓名,逗号分隔 */
|
private String involvedPersons;
|
/** 事故经过 */
|
private String description;
|
/** 原因分析 */
|
private String causeAnalysis;
|
/** 处理措施与整改要求 */
|
private String measures;
|
/** 登记人(员工编号,关联 hrm_employee.id) */
|
private Long reporterId;
|
/** 登记人姓名(快照,由员工档案带出) */
|
private String reporter;
|
/** 登记时间 */
|
private LocalDateTime reportTime;
|
/** 状态,见 SafetyAccidentStatusEnum */
|
private String status;
|
/** 现场照片/调查报告 URL,逗号分隔 */
|
private String attachment;
|
private String remark;
|
|
}
|