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;
|
}
|
|
}
|