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(); ObjectMapper objectMapper = new ObjectMapper();
try { try {
Component component = objectMapper.convertValue(componentObj,Component.class); Component component = objectMapper.convertValue(componentObj,Component.class);
log.info("component:"+component);
componentToExcelRow(component,type); 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) { catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
return true; return true;
} }