package cn.iocoder.yudao.module.trade.controller.admin.foreign.vo; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotEmpty; import jakarta.validation.constraints.NotNull; import lombok.Data; import java.math.BigDecimal; import java.util.List; @Schema(description = "管理后台 - 外贸订单出库 Request VO") @Data public class TradeForeignOrderOutboundReqVO { @Schema(description = "外贸订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") @NotNull(message = "外贸订单编号不能为空") private Long id; @Schema(description = "承运商", example = "COSCO") private String carrier; @Schema(description = "运输/提运单号", example = "COSU1234567890") private String shippingNumber; @Schema(description = "出库明细", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "出库明细不能为空") private List items; @Schema(description = "出库明细项") @Data public static class Item { @Schema(description = "物料编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") @NotNull(message = "物料编号不能为空") private Long itemId; @Schema(description = "出库数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") @NotNull(message = "出库数量不能为空") private BigDecimal quantity; @Schema(description = "库存记录编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") @NotNull(message = "库存记录不能为空") private Long materialStockId; @Schema(description = "仓库编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") @NotNull(message = "仓库不能为空") private Long warehouseId; @Schema(description = "批次编号", example = "1") private Long batchId; @Schema(description = "批次号", example = "B20260916001") private String batchCode; @Schema(description = "库区编号", example = "1") private Long locationId; @Schema(description = "库位编号", example = "1") private Long areaId; } }