Browse Source

项目库导出修改

tags/24080901
CMM 1 year ago
parent
commit
d37e8ffd62
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/common/util/ExcelDownUtil.java

+ 2
- 2
pmapi/src/main/java/com/ningdatech/pmapi/common/util/ExcelDownUtil.java View File

@@ -215,7 +215,7 @@ public class ExcelDownUtil {
String columnValue;
if (ExportOptionEnum.preliminaryPlanFile.equals(column)
|| ExportOptionEnum.supportingMaterialsFile.equals(column)){
String fileStr = String.valueOf(jsonObject.get(column.toString()));
String fileStr = jsonObject.getString(column.toString());
if (Objects.isNull(fileStr) || CommonConst.NULL.equals(fileStr)){
return;
}
@@ -223,7 +223,7 @@ public class ExcelDownUtil {
List<String> nameList = CollUtils.fieldList(fileArray, w -> w.getString(CommonConst.FILE_NAME));
columnValue = nameList.stream().collect(Collectors.joining(StrPool.COMMA));
}else {
columnValue = String.valueOf(jsonObject.get(column.toString()));
columnValue = jsonObject.getString(column.toString());
}
columnValues.add(columnValue);
});


Loading…
Cancel
Save