mirror of
https://gitee.com/anji-plus/report.git
synced 2026-04-01 10:08:36 +08:00
优化----excel null问题
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user