tuqin
2026-11-03 9494075e6d9d2a4b2b884b4ed740dee0c434734c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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;
 
    }
 
}