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
package cn.iocoder.yudao.module.crm.api.contract.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 服务 - CRM 根据销售订单创建合同草稿 Request DTO")
@Data
public class CrmContractCreateFromSaleOrderReqDTO {
 
    @Schema(description = "销售订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long orderId;
 
    @Schema(description = "销售订单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "SO001")
    private String orderNo;
 
    @Schema(description = "客户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long customerId;
 
    @Schema(description = "负责人编号(销售员)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long ownerUserId;
 
    @Schema(description = "下单时间")
    private LocalDateTime orderTime;
 
    @Schema(description = "优惠率,百分比", example = "10")
    private BigDecimal discountPercent;
 
    @Schema(description = "定金金额,单位:元", example = "100")
    private BigDecimal depositPrice;
 
    @Schema(description = "合同明细列表", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Item> items;
 
    @Schema(description = "合同明细")
    @Data
    public static class Item {
 
        @Schema(description = "物料编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
        private Long itemId;
 
        @Schema(description = "计量单位编号", example = "1")
        private Long itemUnitId;
 
        @Schema(description = "成交单价,单位:元", example = "100")
        private BigDecimal price;
 
        @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
        private BigDecimal count;
    }
 
}