修改
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user