package cn.iocoder.yudao.module.trade.controller.admin.domestic.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 TradeDomesticOrderOutboundReqVO {
|
|
@Schema(description = "内贸订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
@NotNull(message = "内贸订单编号不能为空")
|
private Long id;
|
|
@Schema(description = "承运商", example = "顺丰")
|
private String carrier;
|
|
@Schema(description = "运输单号", example = "SF123456")
|
private String shippingNumber;
|
|
@Schema(description = "出库明细", requiredMode = Schema.RequiredMode.REQUIRED)
|
@NotEmpty(message = "出库明细不能为空")
|
private List<Item> 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;
|
|
}
|
|
}
|