云
5 天以前 a82d847bbb39e2417d4c9773ebc4fc51fdb0b8fc
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
package cn.iocoder.yudao.module.crm.dal.dataobject.quotation;
 
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.module.crm.dal.dataobject.business.CrmBusinessDO;
import cn.iocoder.yudao.module.crm.dal.dataobject.contact.CrmContactDO;
import cn.iocoder.yudao.module.crm.dal.dataobject.contract.CrmContractDO;
import cn.iocoder.yudao.module.crm.dal.dataobject.customer.CrmCustomerDO;
import cn.iocoder.yudao.module.crm.enums.quotation.CrmSaleQuotationStatusEnum;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
/**
 * CRM 销售报价单 DO
 *
 * @author 超级管理员
 */
@TableName("crm_sale_quotation")
@KeySequence("crm_sale_quotation_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CrmSaleQuotationDO extends BaseDO {
 
    /**
     * 编号
     */
    @TableId
    private Long id;
    /**
     * 报价单号
     */
    private String no;
    /**
     * 报价单名称
     */
    private String name;
    /**
     * 客户编号
     *
     * 关联 {@link CrmCustomerDO#getId()}
     */
    private Long customerId;
    /**
     * 商机编号,非必须
     *
     * 关联 {@link CrmBusinessDO#getId()}
     */
    private Long businessId;
    /**
     * 联系人编号,非必须
     *
     * 关联 {@link CrmContactDO#getId()}
     */
    private Long contactId;
    /**
     * 负责人用户编号
     *
     * 关联 AdminUserDO 的 id 字段
     */
    private Long ownerUserId;
    /**
     * 审批状态
     *
     * 枚举 {@link CrmSaleQuotationStatusEnum}
     */
    private Integer status;
    /**
     * 工作流编号
     *
     * 关联 ProcessInstance 的 id 属性
     */
    private String processInstanceId;
 
    /**
     * 报价日期
     */
    private LocalDateTime quotationTime;
    /**
     * 有效期至
     */
    private LocalDateTime validUntil;
    /**
     * 产品总金额,单位:元
     */
    private BigDecimal totalProductPrice;
    /**
     * 整单折扣,百分比
     */
    private BigDecimal discountPercent;
    /**
     * 优惠金额,单位:元
     */
    private BigDecimal discountPrice;
    /**
     * 报价总金额,单位:元
     *
     * totalPrice = totalProductPrice - discountPrice
     */
    private BigDecimal totalPrice;
    /**
     * 税率,百分比
     */
    private BigDecimal taxRate;
    /**
     * 税额,单位:元
     */
    private BigDecimal taxPrice;
 
    /**
     * 关联合同编号
     *
     * 关联 {@link CrmContractDO#getId()}
     */
    private Long contractId;
    /**
     * 关联合同单号
     */
    private String contractNo;
 
    /**
     * 是否需要投标
     *
     * 需要投标的报价单,必须绑定投标且投标已中标后才能转合同
     */
    private Boolean needBid;
 
    /**
     * 关联投标(保证金)编号
     */
    private Long bidBondId;
    /**
     * 关联投标单号快照
     */
    private String bidBondNo;
    /**
     * 已提交报价轮次
     */
    private Integer revisionNo;
    /**
     * 作废类型
     *
     * 枚举 {@link cn.iocoder.yudao.module.crm.enums.quotation.CrmSaleQuotationVoidTypeEnum}
     */
    private Integer voidType;
    /**
     * 作废原因
     */
    private String voidReason;
    /**
     * 作废时间
     */
    private LocalDateTime voidTime;
    /**
     * 作废人用户编号
     */
    private Long voidBy;
    /**
     * 备注
     */
    private String remark;
 
}