fengxiang
2018-09-27 7c46bd2e4c3921fe6f77682f1c80ff5c7e927539
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])));
            }
         }
      }
   }