package cn.iocoder.yudao.module.mes.controller.admin.safety.vo.certificate;
|
|
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 MesSafetyCertificateSaveReqVO {
|
|
@Schema(description = "编号", example = "1024")
|
private Long id;
|
|
@Schema(description = "持证人编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "持证人不能为空")
|
private Long userId;
|
|
@Schema(description = "所属部门编号", example = "120")
|
private Long deptId;
|
|
@Schema(description = "证书类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "证书类型不能为空")
|
private Integer certType;
|
|
@Schema(description = "证书编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "T123456789")
|
@NotEmpty(message = "证书编号不能为空")
|
private String certNo;
|
|
@Schema(description = "发证机关", example = "新疆应急管理厅")
|
private String issueOrg;
|
|
@Schema(description = "发证日期")
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
|
private LocalDate issueDate;
|
|
@Schema(description = "有效期至(留空表示长期有效)")
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
|
private LocalDate expireDate;
|
|
@Schema(description = "状态:1有效 0已作废", example = "1")
|
private Integer status;
|
|
@Schema(description = "证书扫描件地址")
|
private String attachmentUrl;
|
|
@Schema(description = "备注")
|
private String remark;
|
|
}
|