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 MesSafetyHazardRectifyReqVO {
|
|
@Schema(description = "隐患编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
@NotNull(message = "隐患编号不能为空")
|
private Long id;
|
|
@Schema(description = "整改措施", requiredMode = Schema.RequiredMode.REQUIRED,
|
example = "已加装防护罩并固定")
|
@NotEmpty(message = "整改措施不能为空")
|
private String measure;
|
|
@Schema(description = "整改完成日期", example = "2026-11-05")
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
|
private LocalDate finishDate;
|
|
}
|