package cn.iocoder.yudao.module.mes.controller.admin.wm.equipmentreceipt.vo.line;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.DecimalMin;
|
import jakarta.validation.constraints.NotNull;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
|
@Schema(description = "管理后台 - MES 设备入库单行新增/修改 Request VO")
|
@Data
|
public class MesWmEquipmentReceiptLineSaveReqVO {
|
|
@Schema(description = "编号", example = "1")
|
private Long id;
|
|
@Schema(description = "入库单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "入库单编号不能为空")
|
private Long receiptId;
|
|
@Schema(description = "设备台账编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "设备不能为空")
|
private Long machineryId;
|
|
@Schema(description = "设备物料编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "设备物料不能为空")
|
private Long itemId;
|
|
@Schema(description = "入库数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1.00")
|
@NotNull(message = "入库数量不能为空")
|
@DecimalMin(value = "0.01", message = "入库数量不能小于 0.01")
|
private BigDecimal quantity;
|
|
@Schema(description = "备注", example = "备注")
|
private String remark;
|
|
}
|