类 ExcelImportCheckUtil
java.lang.Object
org.jeecgframework.poi.excel.ExcelImportCheckUtil
EXCEL INCLUE CHECK
验证excel标题是否存在,当前默认有0.8(80%)即可通过验证
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidaddEntityToMap(String targetId, Field field, ExcelImportEntity excelEntity, Class<?> pojoClass, List<Method> getMethods, Map<String, ExcelImportEntity> temp) 把这个注解解析放到类型对象中static Booleancheck(InputStream inputstream, Class<?> pojoClass, ImportParams params) check inclue filed match ratestatic Booleancheck(InputStream inputstream, Class<?> pojoClass, ImportParams params, Double screenRate) check inclue filed match ratestatic voidgetAllExcelField(String targetId, Field[] fields, Map<String, ExcelImportEntity> excelParams, List<ExcelCollectionParams> excelCollection, Class<?> pojoClass, List<Method> getMethods) 获取需要导出的全部字段static voidgetExcelField(String targetId, Field field, ExcelImportEntity excelEntity, Excel excel, Class<?> pojoClass) static voidgetExcelFieldList(String targetId, Field[] fields, Class<?> pojoClass, Map<String, ExcelImportEntity> temp, List<Method> getMethods) static StringgetExcelName(String exportName, String targetId) 判断在这个单元格显示的名称static ExcelVerifyEntitygetImportVerify(Field field) 获取导入校验参数
-
字段详细资料
-
defScreenRate
当有标题到达多少可以通过验证
-
-
构造器详细资料
-
ExcelImportCheckUtil
public ExcelImportCheckUtil()
-
-
方法详细资料
-
check
check inclue filed match rate- 参数:
inputstream-pojoClass-params-- 返回:
-
check
public static Boolean check(InputStream inputstream, Class<?> pojoClass, ImportParams params, Double screenRate) check inclue filed match rate- 参数:
inputstream-pojoClass-params-screenRate- field match rate (defalut:0.8)- 返回:
-
getAllExcelField
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-- 抛出:
Exception
-
getExcelFieldList
public static void getExcelFieldList(String targetId, Field[] fields, Class<?> pojoClass, Map<String, ExcelImportEntity> temp, List<Method> getMethods) throws Exception- 抛出:
Exception
-
addEntityToMap
public 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-- 抛出:
Exception
-
getExcelField
public static void getExcelField(String targetId, Field field, ExcelImportEntity excelEntity, Excel excel, Class<?> pojoClass) throws Exception - 抛出:
Exception
-
getExcelName
判断在这个单元格显示的名称- 参数:
exportName-targetId-- 返回:
-
getImportVerify
获取导入校验参数- 参数:
field-- 返回:
-