This commit is contained in:
daiqy88
2025-11-03 14:07:49 +08:00
parent 5c5678b519
commit 5fbe7420f8

View File

@@ -394,13 +394,30 @@ public class OfficeProxy{
ObjectMapper objectMapper = new ObjectMapper();
try {
Component component = objectMapper.convertValue(componentObj,Component.class);
log.info("component:"+component);
componentToExcelRow(component,type);
for(List<Object> row : rows)
{
String rowString = "";
for(Object object : row)
{
if(object == null)
{
rowString += "null, ";
}
else
{
rowString += object.toString()+", ";
}
}
}
}
catch (Exception e) {
e.printStackTrace();
}
}
return true;
}