fengxiang
2018-06-23 30d2366d51e7d3f3bfdb4652f9d3a07a531d907b
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])));
            }
         }
      }
   }