2026-06-30 24681c81c09022f584a57006f2534b5f74723414
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
package cn.iocoder.yudao.module.wms.controller.admin.order.receipt.vo.order;
 
import cn.iocoder.yudao.framework.common.validation.InEnum;
import cn.iocoder.yudao.module.wms.controller.admin.order.receipt.vo.detail.WmsReceiptOrderDetailSaveReqVO;
import cn.iocoder.yudao.module.wms.enums.order.WmsReceiptOrderTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
 
import java.time.LocalDateTime;
import java.util.List;
 
@Schema(description = "管理后台 - WMS 入库单保存 Request VO")
@Data
public class WmsReceiptOrderSaveReqVO {
 
    @Schema(description = "编号", example = "1024")
    private Long id;
 
    @Schema(description = "入库单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "RK202605110001")
    @NotBlank(message = "入库单号不能为空")
    @Size(max = 64, message = "入库单号长度不能超过 64 个字符")
    private String no;
 
    @Schema(description = "入库类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "101")
    @NotNull(message = "入库类型不能为空")
    @InEnum(WmsReceiptOrderTypeEnum.class)
    private Integer type;
 
    @Schema(description = "单据日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "单据日期不能为空")
    private LocalDateTime orderTime;
 
    @Schema(description = "业务单号", example = "PO202605110001")
    @Size(max = 64, message = "业务单号长度不能超过 64 个字符")
    private String bizOrderNo;
 
    @Schema(description = "供应商编号", example = "1024")
    private Long merchantId;
 
    @Schema(description = "备注", example = "备注")
    @Size(max = 255, message = "备注长度不能超过 255 个字符")
    private String remark;
 
    @Schema(description = "仓库编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "仓库不能为空")
    private Long warehouseId;
 
    @Schema(description = "入库明细")
    @Valid
    private List<WmsReceiptOrderDetailSaveReqVO> details;
 
}