From 72f0bb132ae89eea21afc8e92666523dcde632ab Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 06 十月 2023 12:33:17 +0800 Subject: [PATCH] 添加 fingerId 字段 --- src/main/java/com/smartearth/poiexcel/controller/OrgPoiController.java | 4 ++-- src/main/java/com/smartearth/poiexcel/entity/OrgPoiExcel.java | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/smartearth/poiexcel/controller/OrgPoiController.java b/src/main/java/com/smartearth/poiexcel/controller/OrgPoiController.java index 29ef6e2..8709c68 100644 --- a/src/main/java/com/smartearth/poiexcel/controller/OrgPoiController.java +++ b/src/main/java/com/smartearth/poiexcel/controller/OrgPoiController.java @@ -238,9 +238,9 @@ data.setX(0.0); data.setY(0.0); j++; - if (j == 3000) { + if (j == 300000) { excelWriter.finish(); - return Result.error("杩斿洖鍊间负0瓒呰繃3000娆�"); + return Result.error("杩斿洖鍊间负0瓒呰繃300000娆�"); } } k++; diff --git a/src/main/java/com/smartearth/poiexcel/entity/OrgPoiExcel.java b/src/main/java/com/smartearth/poiexcel/entity/OrgPoiExcel.java index 57cd5b0..004154f 100644 --- a/src/main/java/com/smartearth/poiexcel/entity/OrgPoiExcel.java +++ b/src/main/java/com/smartearth/poiexcel/entity/OrgPoiExcel.java @@ -3,6 +3,8 @@ import com.alibaba.excel.annotation.ExcelProperty; public class OrgPoiExcel { + @ExcelProperty("鍞竴缂栧彿") + private String fingerId; @ExcelProperty("寰呰浆鎹㈠湴鍧�") private String address; @@ -19,6 +21,7 @@ @Override public String toString() { return "OrgPoiExcel{" + + ", fingerId='" + fingerId + '\'' + ", address='" + address + '\'' + ", x=" + x + ", y=" + y + @@ -26,6 +29,13 @@ '}'; } + public String getFingerId() { + return fingerId; + } + + public void setFingerId(String fingerId) { + this.fingerId = fingerId; + } public String getAddress() { return address; -- Gitblit v1.9.3