Examples of ExcelCollectionParams


Examples of org.jeecgframework.poi.excel.entity.ExcelCollectionParams

      if (ExcelPublicUtil.isNotUserExcelUserThis(field, targetId)) {
        continue;
      }
      if (ExcelPublicUtil.isCollection(field.getType())) {
        // 集合对象设置属性
        ExcelCollectionParams collection = new ExcelCollectionParams();
        collection.setName(field.getName());
        Map<String, ExcelImportEntity> temp = new HashMap<String, ExcelImportEntity>();
        ParameterizedType pt = (ParameterizedType) field
            .getGenericType();
        Class<?> clz = (Class<?>) pt.getActualTypeArguments()[0];
        collection.setType(clz);
        getExcelFieldList(targetId,
            ExcelPublicUtil.getClassFields(clz), clz, temp, null);
        collection.setExcelParams(temp);
        excelCollection.add(collection);
      } else if (ExcelPublicUtil.isJavaClass(field)) {
        addEntityToMap(targetId, field, excelEntity, pojoClass,getMethods,excelParams);
      } else {
        List<Method> newMethods = new ArrayList<Method>();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.