fengxiang
2018-05-04 4a41bd4e105385b5460e5a81c8b67e5f701a262b
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])));
            }
         }
      }
   }