liyong
4 天以前 be5783c8a7e13bbc76d33c95643d75779cce21db
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package cn.iocoder.yudao.module.erp.controller.admin.sale.vo.order;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
 
@Schema(description = "管理后台 - ERP 销售订单新增/修改 Request VO")
@Data
public class ErpSaleOrderSaveReqVO {
 
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "17386")
    private Long id;
 
    @Schema(description = "客户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1724")
    @NotNull(message = "客户编号不能为空")
    private Long customerId;
 
    @Schema(description = "关联合同编号", example = "1")
    private Long contractId;
 
    @Schema(description = "合同单号", example = "HT001")
    private String contractNo;
 
    @Schema(description = "下单时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "下单时间不能为空")
    private LocalDateTime orderTime;
 
    @Schema(description = "销售员编号", example = "1888")
    private Long saleUserId;
 
    @Schema(description = "结算账户编号", example = "31189")
    private Long accountId;
 
    @Schema(description = "优惠率,百分比", requiredMode = Schema.RequiredMode.REQUIRED, example = "99.88")
    private BigDecimal discountPercent;
 
    @Schema(description = "定金金额,单位:元", example = "7127")
    private BigDecimal depositPrice;
 
    @Schema(description = "附件地址", example = "https://www.iocoder.cn")
    private String fileUrl;
 
    @Schema(description = "备注", example = "你猜")
    private String remark;
 
    @Schema(description = "订单清单列表")
    private List<Item> items;
 
    @Data
    public static class Item {
 
        @Schema(description = "订单项编号", example = "11756")
        private Long id;
 
        @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "3113")
        @NotNull(message = "产品编号不能为空")
        private Long productId;
 
        @Schema(description = "产品单位单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "3113")
        @NotNull(message = "产品单位单位不能为空")
        private Long productUnitId;
 
        @Schema(description = "产品单价", example = "100.00")
        private BigDecimal productPrice;
 
        @Schema(description = "产品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "100.00")
        @NotNull(message = "产品数量不能为空")
        private BigDecimal count;
 
        @Schema(description = "税率,百分比", example = "99.88")
        private BigDecimal taxPercent;
 
        @Schema(description = "是否需要生产(0=否 1=是)", example = "1")
        private Integer needProduction;
 
        @Schema(description = "备注", example = "随便")
        private String remark;
 
    }
 
}