package com.yhy.module.core.controller.admin.quota.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 定额调整材料明细 VO")
@Data
public class QuotaAdjustmentMaterialItemVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "序号不能为空")
    private Integer sortOrder;

    @Schema(description = "工料机编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "C001")
    @NotBlank(message = "工料机编码不能为空")
    private String resourceCode;

    @Schema(description = "工料机名称", example = "水泥 P.O 42.5")
    private String resourceName;

    @Schema(description = "增减定额消耗量数值", requiredMode = Schema.RequiredMode.REQUIRED, example = "2.5")
    @NotNull(message = "增减定额消耗量数值不能为空")
    private BigDecimal adjustValue;

    @Schema(description = "备注", example = "增加损耗")
    private String remark;
}
