code: public static <T> Workbook writeWorkBook(Workbook workbook, List<T> beans, String dateFormat) {
          if (beans == null || beans.isEmpty()) {
              return workbook;
          }
          Map<String, Object> map = null;
          if (beans.get(0) instanceof Map) {
              map = (Map<String, Object>) beans.get(0);
          } else {
              map = CommonUtils.toMap(beans.get(0));
          }
          if (map == null) {
              return workbook;
          }
          List<String> properties = new ArrayList<String>();
          properties.addAll(map.keySet());
          return WriteExcelUtils.writeWorkBook(workbook, beans, properties, properties, dateFormat);
      }
docs: 将Beans写入WorkBook中,默认以bean中的所有属性作为标题且写入第0行，0-based
  
  @param workbook   指定工作簿
  @param beans      指定写入的Beans(或者泛型为Map)
  @param dateFormat 日期格式
  @return 返回传入的WorkBook