poi导入导出数据库中的数据的工具类之二(需要使用参数封装的工具类)(SimpleExportParameter)

public class SimpleExportParameter {
private List<Map<String, Object>> dataList;//从数据库中获取的数据
private String title;//设置文档标题
private String[]  fieldsName;//设置列名称
private String[]  fieldsId;//List<Map<String, Object>>中需要在excel表格中展示的列,放map中的key值字符串数组
private String[] width;//设置单元格的宽度
public List<Map<String, Object>> getDataList() {
return dataList;
}
public void setDataList(List<Map<String, Object>> dataList) {
this.dataList = dataList;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String[] getFieldsName() {
return fieldsName;
}
public void setFieldsName(String[] fieldsName) {
this.fieldsName = fieldsName;
}
public String[] getFieldsId() {
return fieldsId;
}
public void setFieldsId(String[] fieldsId) {
this.fieldsId = fieldsId;
}
public String[] getWidth() {
return width;
}
public void setWidth(String[] width) {
this.width = width;
}

 }

猜你喜欢

转载自blog.csdn.net/futao127/article/details/80501015