初始提交:添加分时处理
This commit is contained in:
parent
281ebf8acc
commit
1e53fcfa2d
@ -1,10 +1,12 @@
|
||||
package com.southern.power.grid.entity;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.alibaba.excel.annotation.format.DateTimeFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* TODO excel导入待完善
|
||||
*
|
||||
* @author: junzhangfm
|
||||
* @date: 2026/3/13
|
||||
@ -13,4 +15,34 @@ import lombok.Data;
|
||||
public class DataExcelEntity {
|
||||
@ExcelProperty(value = "省")
|
||||
private String province;
|
||||
|
||||
@ExcelProperty(value = "地市局")
|
||||
private String city;
|
||||
|
||||
@ExcelProperty(value = "区县局")
|
||||
private String district;
|
||||
|
||||
@ExcelProperty(value = "停复电状态")
|
||||
private String outageState;
|
||||
|
||||
@ExcelProperty(value = "停电类别")
|
||||
private String outageType;
|
||||
|
||||
@DateTimeFormat("yyyy-MM-dd HH:mm:ss")
|
||||
@ExcelProperty(value = "停电开始时间")
|
||||
private LocalDateTime startTime;
|
||||
|
||||
@DateTimeFormat("yyyy-MM-dd HH:mm:ss")
|
||||
@ExcelProperty(value = "停电结束时间")
|
||||
private LocalDateTime endTime;
|
||||
|
||||
@ExcelProperty(value = "停电时长")
|
||||
private Float lengthOutage ;
|
||||
|
||||
@ExcelProperty(value = "停电影响用户数")
|
||||
private Integer userCount;
|
||||
|
||||
@DateTimeFormat("yyyy-MM-dd HH:mm:ss")
|
||||
@ExcelProperty(value = "数据创建时间")
|
||||
private LocalDateTime createTime;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user