package cn.iocoder.yudao.module.mes.controller.admin.dv.metering.vo;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.NotEmpty;
|
import jakarta.validation.constraints.NotNull;
|
import lombok.Data;
|
|
import java.time.LocalDate;
|
|
@Schema(description = "管理后台 - MES 计量器具新增/修改 Request VO")
|
@Data
|
public class MesDvMeteringSaveReqVO {
|
|
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
private Long id;
|
|
@Schema(description = "计量器具编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "MD-001")
|
@NotEmpty(message = "计量器具编码不能为空")
|
private String code;
|
|
@Schema(description = "计量器具名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "数显卡尺")
|
@NotEmpty(message = "计量器具名称不能为空")
|
private String name;
|
|
@Schema(description = "规格型号", example = "0-150mm")
|
private String specification;
|
|
@Schema(description = "品牌/生产厂家", example = "三丰")
|
private String brand;
|
|
@Schema(description = "器具类别", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "器具类别不能为空")
|
private Integer category;
|
|
@Schema(description = "精度", example = "0.01mm")
|
private String precision;
|
|
@Schema(description = "量程", example = "0-150mm")
|
private String range;
|
|
@Schema(description = "使用部门编号", example = "100")
|
private Long deptId;
|
|
@Schema(description = "责任人编号", example = "200")
|
private Long chargeUserId;
|
|
@Schema(description = "校准周期(月)", requiredMode = Schema.RequiredMode.REQUIRED, example = "12")
|
@NotNull(message = "校准周期不能为空")
|
private Integer checkCycleCount;
|
|
@Schema(description = "投入使用日期")
|
private LocalDate useDate;
|
|
@Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "状态不能为空")
|
private Integer status;
|
|
@Schema(description = "备注", example = "备注")
|
private String remark;
|
|
}
|