Contract.java
4.01 KB
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
package vion.model;
import com.baomidou.mybatisplus.annotation.*;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;
import vion.dto.ContractDTO;
import vion.vo.ContractVO;
import java.math.BigDecimal;
import java.util.Date;
/**
* 合同
*/
@Data
@TableName(value = "tbl_contract_info")
@AutoMappers({
@AutoMapper(target = ContractVO.class),
@AutoMapper(target = ContractDTO.class),
})
public class Contract {
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 合同名称
*/
@TableField(value = "\"name\"")
private String name;
/**
* 合同编号
*/
@TableField(value = "contract_no")
private String contractNo;
/**
* 合同类型:1-维保合同 2-框架合同 3-集成合同 4-供货合同 5-供货施工合同 0-其他
*/
@TableField(value = "\"type\"")
private Integer type;
/**
* 合同签订日期
*/
@TableField(value = "sign_date")
private Date signDate;
/**
* 合同维保开始日期
*/
@TableField(value = "maintain_sdate")
private Date maintainSdate;
/**
* 合同维保结束日期
*/
@TableField(value = "maintain_edate")
private Date maintainEdate;
/**
* 合同进度:1-签订 2-发货 3-货到 4-安装 5-验收 6-质保
*/
@TableField(value = "\"status\"")
private Integer status;
/**
* 合同总金额
*/
@TableField(value = "total_amount")
private BigDecimal totalAmount;
/**
* 合同已收金额:人工编辑
*/
@TableField(value = "paid_amount")
private BigDecimal paidAmount;
/**
* 合同应收金额:
* 根据【合同进度】,由系统判断出应该收到的金额
*/
@TableField(value = "receivable_amount")
private BigDecimal receivableAmount;
/**
* 合同未收金额:total-(paid+receivable)
*/
@TableField(value = "outstanding_amount")
private BigDecimal outstandingAmount;
/**
* 合同签订主体
*/
@TableField(value = "subject")
private String subject;
/**
* 合同甲方名称
*/
@TableField(value = "customer_name")
private String customerName;
/**
* 销售人员名称
*/
@TableField(value = "sale_name")
private String saleName;
/**
* 备注
*/
@TableField(value = "remark")
private String remark;
/**
* 记录创建者
*/
@TableField(value = "create_user")
private Long createUser;
/**
* 记录最后一次修改者
*/
@TableField(value = "modify_user")
private Long modifyUser;
/**
* 创建时间
*/
@TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime;
/**
* 修改时间
*/
@TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
private Date modifyTime;
/**
* 合同质保周期(月)
*/
@TableField(value = "warranty_period")
private Integer warrantyPeriod;
/**
* 合同签订付款比例
*/
@TableField(exist = false)
private BigDecimal signRatio;
/**
* 合同到货付款比例
*/
@TableField(exist = false)
private BigDecimal arriveRatio;
/**
* 合同系统验收付款比例
*/
@TableField(exist = false)
private BigDecimal systemCheckRatio;
/**
* 合同项目验收付款比例
*/
@TableField(exist = false)
private BigDecimal projectCheckRatio;
/**
* 合同质保付款比例
*/
@TableField(exist = false)
private BigDecimal warrantyRatio;
/**
* 合同维保付款比例1
*/
@TableField(exist = false)
private BigDecimal maintainRatio1;
/**
* 合同维保付款比例2
*/
@TableField(exist = false)
private BigDecimal maintainRatio2;
/**
* 合同维保付款比例2
*/
@TableField(exist = false)
private BigDecimal maintainRatio3;
}