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