gaoluyang
2026-10-16 7081c41bc3beb0ab49a22974ea4b010ae6854afe
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
package cn.iocoder.yudao.module.crm.controller.admin.contract.vo.contract;
 
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.annotations.ExcelColumnSelect;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.idev.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
import static cn.iocoder.yudao.module.crm.enums.DictTypeConstants.*;
 
/**
 * 合同 Excel 导入 VO
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CrmContractImportExcelVO {
 
    @ExcelProperty("合同名称")
    private String name;
 
    @ExcelProperty("客户名称")
    private String customerName;
 
    @ExcelProperty("下单日期")
    private LocalDateTime orderDate;
 
    @ExcelProperty("开始时间")
    private LocalDateTime startTime;
 
    @ExcelProperty("结束时间")
    private LocalDateTime endTime;
 
    @ExcelProperty("整单折扣")
    private BigDecimal discountPercent;
 
    @ExcelProperty("合同总金额")
    private BigDecimal totalPrice;
 
    @ExcelProperty("定金金额")
    private BigDecimal depositPrice;
 
    @ExcelProperty(value = "合同类型", converter = DictConvert.class)
    @DictFormat(CRM_CONTRACT_TYPE)
    @ExcelColumnSelect(dictType = CRM_CONTRACT_TYPE)
    private String contractType;
 
    @ExcelProperty(value = "电压等级", converter = DictConvert.class)
    @DictFormat(CRM_VOLTAGE_LEVEL)
    @ExcelColumnSelect(dictType = CRM_VOLTAGE_LEVEL)
    private String voltageLevel;
 
    @ExcelProperty(value = "用电类型", converter = DictConvert.class)
    @DictFormat(CRM_ELECTRICITY_TYPE)
    @ExcelColumnSelect(dictType = CRM_ELECTRICITY_TYPE)
    private String electricityType;
 
    @ExcelProperty("合同容量")
    private BigDecimal contractCapacity;
 
    @ExcelProperty(value = "电价模式", converter = DictConvert.class)
    @DictFormat(CRM_TARIFF_MODE)
    @ExcelColumnSelect(dictType = CRM_TARIFF_MODE)
    private String tariffMode;
 
    @ExcelProperty(value = "计量方式", converter = DictConvert.class)
    @DictFormat(CRM_METER_MODE)
    @ExcelColumnSelect(dictType = CRM_METER_MODE)
    private String meterMode;
 
    @ExcelProperty("缴费周期")
    private Integer payCycle;
 
    @ExcelProperty("备注")
    private String remark;
 
}