public class ExcelImportCheckUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Double |
defScreenRate
当有标题到达多少可以通过验证
|
| 构造器和说明 |
|---|
ExcelImportCheckUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addEntityToMap(String targetId,
Field field,
ExcelImportEntity excelEntity,
Class<?> pojoClass,
List<Method> getMethods,
Map<String,ExcelImportEntity> temp)
把这个注解解析放到类型对象中
|
static Boolean |
check(InputStream inputstream,
Class<?> pojoClass,
ImportParams params)
check inclue filed match rate
|
static Boolean |
check(InputStream inputstream,
Class<?> pojoClass,
ImportParams params,
Double screenRate)
check inclue filed match rate
|
static void |
getAllExcelField(String targetId,
Field[] fields,
Map<String,ExcelImportEntity> excelParams,
List<ExcelCollectionParams> excelCollection,
Class<?> pojoClass,
List<Method> getMethods)
获取需要导出的全部字段
|
static void |
getExcelField(String targetId,
Field field,
ExcelImportEntity excelEntity,
Excel excel,
Class<?> pojoClass) |
static void |
getExcelFieldList(String targetId,
Field[] fields,
Class<?> pojoClass,
Map<String,ExcelImportEntity> temp,
List<Method> getMethods) |
static String |
getExcelName(String exportName,
String targetId)
判断在这个单元格显示的名称
|
static ExcelVerifyEntity |
getImportVerify(Field field)
获取导入校验参数
|
public static final Double defScreenRate
public static Boolean check(InputStream inputstream, Class<?> pojoClass, ImportParams params)
inputstream - pojoClass - params - public static Boolean check(InputStream inputstream, Class<?> pojoClass, ImportParams params, Double screenRate)
inputstream - pojoClass - params - screenRate - field match rate (defalut:0.8)public static void getAllExcelField(String targetId, Field[] fields, Map<String,ExcelImportEntity> excelParams, List<ExcelCollectionParams> excelCollection, Class<?> pojoClass, List<Method> getMethods) throws Exception
targetId - 目标IDfields - excelCollection - Exceptionpublic static void getExcelFieldList(String targetId, Field[] fields, Class<?> pojoClass, Map<String,ExcelImportEntity> temp, List<Method> getMethods) throws Exception
Exceptionpublic static void addEntityToMap(String targetId, Field field, ExcelImportEntity excelEntity, Class<?> pojoClass, List<Method> getMethods, Map<String,ExcelImportEntity> temp) throws Exception
targetId - field - excelEntity - pojoClass - getMethods - temp - Exceptionpublic static void getExcelField(String targetId, Field field, ExcelImportEntity excelEntity, Excel excel, Class<?> pojoClass) throws Exception
Exceptionpublic static String getExcelName(String exportName, String targetId)
exportName - targetId - public static ExcelVerifyEntity getImportVerify(Field field)
field - Copyright © 2024. All rights reserved.