From 9691a276946146251fd039f9cd3a630345af3248 Mon Sep 17 00:00:00 2001 From: Dayu <1010@qq.com> Date: Thu, 11 Jul 2024 09:14:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../excel/InspectionTasksExcel.java | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 src/main/java/org/energy/modules/inspection/excel/InspectionTasksExcel.java diff --git a/src/main/java/org/energy/modules/inspection/excel/InspectionTasksExcel.java b/src/main/java/org/energy/modules/inspection/excel/InspectionTasksExcel.java new file mode 100644 index 0000000..9b6896a --- /dev/null +++ b/src/main/java/org/energy/modules/inspection/excel/InspectionTasksExcel.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com). + *
+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *
+ * http://www.apache.org/licenses/LICENSE-2.0 + *
+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.energy.modules.inspection.excel; + +import com.alibaba.excel.annotation.ExcelProperty; +import com.alibaba.excel.annotation.write.style.ColumnWidth; +import com.alibaba.excel.annotation.write.style.ContentRowHeight; +import com.alibaba.excel.annotation.write.style.HeadRowHeight; +import lombok.Data; + +import java.io.Serializable; + +/** + * EquipmentLedge model export + * @author edwong + */ +@Data +@ColumnWidth(25) +@HeadRowHeight(20) +@ContentRowHeight(16) +public class InspectionTasksExcel implements Serializable { + private static final long serialVersionUID = 1L; + + @ColumnWidth(20) + @ExcelProperty(value = "任务编号") + private String taskNo; + + @ColumnWidth(15) + @ExcelProperty(value = "任务名称") + private String taskName; + + @ColumnWidth(15) + @ExcelProperty(value = "场站") + private String stationExt; + + @ColumnWidth(15) + @ExcelProperty(value = "任务生成日期") + private String taskStartDate; + + @ColumnWidth(15) + @ExcelProperty(value = "任务完成日期") + private String taskEndDate; + + @ColumnWidth(15) + @ExcelProperty(value = "责任人") + private String responsiblePerson; + + @ColumnWidth(15) + @ExcelProperty(value = "状态") + private String taskStatusExt; + + @ColumnWidth(15) + @ExcelProperty(value = "取消原因") + private String cancelReason; + + +}