package cn.iocoder.yudao.module.mes.controller.admin.safety.vo.hazard;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.NotEmpty;
|
import jakarta.validation.constraints.NotNull;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.time.LocalDate;
|
|
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
|
|
@Schema(description = "管理后台 - 安全生产-隐患登记/修改 Request VO")
|
@Data
|
public class MesSafetyHazardSaveReqVO {
|
|
@Schema(description = "编号", example = "1024")
|
private Long id;
|
|
@Schema(description = "隐患编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "YH-001")
|
@NotEmpty(message = "隐患编码不能为空")
|
private String code;
|
|
@Schema(description = "隐患名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "配电箱缺防护罩")
|
@NotEmpty(message = "隐患名称不能为空")
|
private String name;
|
|
@Schema(description = "隐患来源", example = "1")
|
private Integer source;
|
|
@Schema(description = "隐患等级", example = "1")
|
private Integer hazardLevel;
|
|
@Schema(description = "隐患类别", example = "1")
|
private Integer category;
|
|
@Schema(description = "关联风险单元编号", example = "1")
|
private Long unitId;
|
|
@Schema(description = "关联风险清单编号", example = "1")
|
private Long riskId;
|
|
@Schema(description = "所属车间编号", example = "7")
|
private Long workshopId;
|
|
@Schema(description = "具体位置", example = "造纸车间配电房")
|
private String location;
|
|
@Schema(description = "隐患描述")
|
private String description;
|
|
@Schema(description = "发现日期")
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
|
private LocalDate foundDate;
|
|
@Schema(description = "发现人编号", example = "1")
|
private Long founderUserId;
|
|
@Schema(description = "整改责任人编号", example = "1")
|
@NotNull(message = "整改责任人不能为空")
|
private Long chargeUserId;
|
|
@Schema(description = "整改期限")
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
|
private LocalDate deadline;
|
|
@Schema(description = "整改要求")
|
private String rectifyRequirement;
|
|
@Schema(description = "备注")
|
private String remark;
|
|
}
|