yanghb
2024-12-17 1287337fd0b0c156ec79712f9a600ebeffefe3a6
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
package com.zzg.system.domain.vo;
 
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.converters.date.DateDateConverter;
import com.zzg.system.convert.easyExcel.DateConverter;
import com.zzg.system.convert.easyExcel.StringConverter;
import lombok.Data;
 
import java.text.SimpleDateFormat;
import java.util.Date;
 
@Data
@ExcelIgnoreUnannotated
public class StateExecutionDetailExportVO {
//    @ExcelIgnore
    private String houseStateId;
 
    @ExcelProperty(value = "所属镇/街", index = 0, converter = StringConverter.class)
    private String houseStreet;
 
    @ExcelProperty(value = "坐落", index = 1, converter = StringConverter.class)
    private String houseLocation;
 
    @ExcelProperty(value = "权利人", index = 2, converter = StringConverter.class)
    private String ownerName;
 
    @ExcelProperty(value = "模拟签订时间", index = 3, converter = DateConverter.class)
    private Date virtualSignedTime;
 
    @ExcelProperty(value = "正式签订时间", index = 4, converter = DateConverter.class)
    private Date officialSignedTime;
 
    @ExcelProperty(value = "项目生效时间", index = 5, converter = DateConverter.class)
    private Date projectTime;
 
    @ExcelProperty(value = "付款时间", index = 6, converter = DateConverter.class)
    private Date paidOffTime;
 
    public static StateExecutionDetailExportVO generateExampleData() {
        StateExecutionDetailExportVO vo = new StateExecutionDetailExportVO();
//        vo.setHouseStateId("1");
        vo.setHouseStreet("示例街道");
//        vo.setHouseStateId("1");
        vo.setHouseStreet("示例街道");
        vo.setHouseLocation("示例地址");
        vo.setOwnerName("张三");
 
        try {
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
            vo.setVirtualSignedTime(sdf.parse("2023-09-01")); // 模拟签订时间
            vo.setOfficialSignedTime(sdf.parse("2023-09-10")); // 正式签订时间
            vo.setProjectTime(sdf.parse("2023-09-15")); // 项目生效时间
            vo.setPaidOffTime(sdf.parse("2023-09-20")); // 付款时间
        } catch (Exception e) {
            e.printStackTrace();
        }
 
        return vo;
    }
 
}