Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导入及导出通过自定义处理 #79

Open
ibmsoft opened this issue Jun 12, 2019 · 2 comments
Open

导入及导出通过自定义处理 #79

ibmsoft opened this issue Jun 12, 2019 · 2 comments

Comments

@ibmsoft
Copy link

ibmsoft commented Jun 12, 2019

目前是数据导入导出必须要求是 写一个
public class ArtCrowd {
// index代表列索引,从0开始
@ExcelColumn(index = 0)
private String name;

@ExcelColumn(index = 1)
private String age;

@ExcelColumn(index = 2,dateFormatPattern="yyyy-MM-dd")
private Date birthday;

}

类似这样的类,是否可以 通过自定义一个数组来保存和注释的一样的数据格式,以达到自定义实

现导入的目的。

这样,所有的数据导入,可以在后台通过一个表来灵活配置,不用每次业务表变了,都需要重新

调整导入或者导出这块了

@liaochong
Copy link
Owner

您指的是
// index代表列索引,从0开始
可通过配置文件来动态配置?

@ibmsoft
Copy link
Author

ibmsoft commented Jun 12, 2019

类似这样的定义
groovy 方法
def dataLIst = [
{column:'name',index:0,type:'string'},
{column:'age',index:1,type:'integer'}
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants