4 小时以前 4d15fa8051884869c5b612d0641508874cc71811
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
package cn.iocoder.yudao.module.erp.api.purchase.dto;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
 
@Schema(description = "RPC 服务 - ERP 采购订单创建 Request DTO")
@Data
public class ErpPurchaseOrderCreateReqDTO {
 
    @Schema(description = "供应商编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long supplierId;
 
    @Schema(description = "结算账户编号", example = "1")
    private Long accountId;
 
    @Schema(description = "下单时间")
    private LocalDateTime orderTime;
 
    @Schema(description = "优惠率,百分比", example = "10")
    private BigDecimal discountPercent;
 
    @Schema(description = "定金金额,单位:元", example = "100")
    private BigDecimal depositPrice;
 
    @Schema(description = "备注", example = "备注信息")
    private String remark;
 
    @Schema(description = "附件 blobId 列表")
    private List<Long> blobIds;
 
    @Schema(description = "订单项列表")
    private List<Item> items;
 
    @Schema(description = "订单项")
    @Data
    public static class Item {
 
        @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
        private Long productId;
 
        @Schema(description = "产品单位编号", example = "1")
        private Long productUnitId;
 
        @Schema(description = "产品单价,单位:元", example = "100")
        private BigDecimal productPrice;
 
        @Schema(description = "数量", example = "10")
        private BigDecimal count;
 
        @Schema(description = "税率,百分比", example = "10")
        private BigDecimal taxPercent;
 
        @Schema(description = "备注", example = "备注")
        private String remark;
 
        @Schema(description = "是否需要来料检验", example = "false")
        private Boolean qcCheckFlag;
    }
 
}