优化----excel null问题

Raod 2 years ago
parent 4da78266f3
commit 676cf8f2c8

@ -333,6 +333,9 @@ public class ReportExcelServiceImpl implements ReportExcelService {
JSONObject addCell = cellDynamicData.get(j);
//字段
String fieldLabel = addCell.getString(dataSet.getFieldLabel());
if (StringUtils.isBlank(fieldLabel)) {
fieldLabel = StringUtils.EMPTY;
}
String replace = v.replace("#{".concat(dataSet.getSetCode()).concat(".").concat(dataSet.getFieldLabel()).concat("}"), fieldLabel);
//转字符串,解决深拷贝问题
JSONObject addCellData = JSONObject.parseObject(cellStr);

Loading…
Cancel
Save