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

import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 复合工料机新增/修改 Request VO")
@Data
public class ResourceMergedSaveReqVO {

    @Schema(description = "主键（更新时必填）", example = "1")
    private Long id;

    @Schema(description = "复合工料机ID（引用第四层的复合工料机项，is_merged=1）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1000")
    @NotNull(message = "复合工料机ID不能为空")
    private Long mergedId;

    @Schema(description = "数据源ID（引用真实的第四层工料机项ID）", requiredMode = Schema.RequiredMode.REQUIRED, example = "101")
    @NotNull(message = "数据源ID不能为空")
    private Long sourceId;

    @Schema(description = "地区编码（可选）", example = "GD")
    private String regionCode;

    @Schema(description = "定额消耗量（可选）", example = "1.0")
    private BigDecimal quotaConsumption;

    @Schema(description = "除税市场价（可选）", example = "52.00")
    private BigDecimal taxExclMarketPrice;
}
