From 1e53fcfa2d120edf47cb00c1c5e8ba75b2bd2a72 Mon Sep 17 00:00:00 2001 From: liuzhiming Date: Mon, 16 Mar 2026 16:35:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E6=8F=90=E4=BA=A4=EF=BC=9A?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=86=E6=97=B6=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../power/grid/entity/DataExcelEntity.java | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/southern/power/grid/entity/DataExcelEntity.java b/src/main/java/com/southern/power/grid/entity/DataExcelEntity.java index 00d8384..a19db14 100644 --- a/src/main/java/com/southern/power/grid/entity/DataExcelEntity.java +++ b/src/main/java/com/southern/power/grid/entity/DataExcelEntity.java @@ -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; }