ZhuDongming
2019-08-13 1485d6d9034fd9c36527133b0361cceaf97d7f5d
src/main/java/com/moral/common/util/ExportExcelUtils.java
@@ -64,7 +64,9 @@
      for (int i = 0; i < list.size(); i++) {
         JSONObject jsonObject = JSONObject.fromObject(list.get(i));
         for (int j = 0; j < colTitles.length; j++) {
            ws.addCell(new Label(j, i + 1, jsonObject.getString(fieldNames[j])));
            if (jsonObject.containsKey(fieldNames[j])) {
               ws.addCell(new Label(j, i + 1, jsonObject.getString(fieldNames[j])));
            }
         }
      }
   }