fix: 补全excel数据

This commit is contained in:
taojinlong 2023-07-24 11:51:18 +08:00
parent 6fb2a7829b
commit 4d31834a5b

View File

@ -3122,9 +3122,15 @@ public class NoModelDataListener extends AnalysisEventListener<Map<Integer, Stri
for (Integer key : dataMap.keySet()) {
String value = dataMap.get(key);
if (StringUtils.isEmpty(value)) {
value = "none";
value = "";
}
line.add(value);
};
int size = line.size();
if(size < header.size()){
for (int i = 0; i < header.size() - size; i++) {
line.add("");
}
}
data.add(line);
}