public interface IBaseFileService<E extends IBaseEntity,I extends BaseInParamVo,O extends IBaseOutParamVo> extends IBaseQueryService<E,I,O>
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
IBaseFileService.ProxyData<I> |
| 限定符和类型 | 方法和说明 |
|---|---|
default cloud.agileframework.common.util.file.poi.ExcelFile |
download()
列表查询
|
default cloud.agileframework.common.util.file.poi.ExcelFile |
download(I inParam) |
default <J,T> cloud.agileframework.common.util.file.poi.ExcelFile |
download(I inParam,
Class<J> queryBy,
Class<T> outBy) |
default void |
exportExcel(List<IBaseFileService.ProxyData<I>> proxyData) |
default String |
fileName()
下载的文件名字
|
static cloud.agileframework.common.util.file.poi.CellInfo |
getCellInfo(cloud.agileframework.common.util.clazz.ClassUtil.Target<Excel> target)
构建excel列信息
|
static Class<?> |
getType(cloud.agileframework.common.util.clazz.ClassUtil.Target<Excel> target) |
default void |
handleErrorData(List<IBaseFileService.ProxyData<I>> proxyData) |
default List<E> |
handleSuccessData(List<I> data)
处理读取的excel数据
|
default Object |
template()
列表查询
|
default String |
templatePath()
模板文件的路径
|
default RETURN |
upload(org.springframework.web.multipart.MultipartFile file)
列表查询
|
default RETURN |
upload(org.springframework.web.multipart.MultipartFile file,
boolean exportAllIfError) |
default List<ValidateMsg> |
validateRowData(List<I> data,
I rowData) |
default cloud.agileframework.common.util.file.poi.POIUtil.VERSION |
version() |
detailSql, handingDetailVo, handingListVo, list, list, list, listSql, page, page, page, parseOrder, queryById, queryOne, queryOne, tree, tree, treedao, dataManager, genericService, getEntityClass, getInVoClass, getOutVoClass@Mapping(value={"${agile.base-service.upload:/upload}","/import"}, method=POST) default RETURN upload(@AgileInParam(value="file") org.springframework.web.multipart.MultipartFile file) throws Exception
Exceptiondefault RETURN upload(org.springframework.web.multipart.MultipartFile file, boolean exportAllIfError) throws Exception
Exceptiondefault List<ValidateMsg> validateRowData(List<I> data, I rowData) throws Exception
Exceptiondefault List<E> handleSuccessData(List<I> data) throws Exception
data - 数据Exception - 异常default void handleErrorData(List<IBaseFileService.ProxyData<I>> proxyData) throws Exception
Exceptiondefault void exportExcel(List<IBaseFileService.ProxyData<I>> proxyData) throws Exception
Exception@Mapping(value={"${agile.base-service.download:/download}","/export"}, method={POST,GET}) default cloud.agileframework.common.util.file.poi.ExcelFile download() throws Exception
Exceptiondefault cloud.agileframework.common.util.file.poi.ExcelFile download(I inParam)
default <J,T> cloud.agileframework.common.util.file.poi.ExcelFile download(I inParam, Class<J> queryBy, Class<T> outBy)
@Mapping(value="${agile.base-service.template:/template}", method={GET,POST}) default Object template() throws Exception
Exceptionstatic cloud.agileframework.common.util.file.poi.CellInfo getCellInfo(cloud.agileframework.common.util.clazz.ClassUtil.Target<Excel> target)
target - 标注Excel注解的对象static Class<?> getType(cloud.agileframework.common.util.clazz.ClassUtil.Target<Excel> target)
default String fileName()
default String templatePath() throws NoSuchFileException
default cloud.agileframework.common.util.file.poi.POIUtil.VERSION version()
Copyright © 2022. All rights reserved.