Commit 1008d812 authored by yanzg's avatar yanzg

EXCEL自定义列处理

parent 4b95b2af
...@@ -17,6 +17,18 @@ public class DataDaoVo<T> { ...@@ -17,6 +17,18 @@ public class DataDaoVo<T> {
private final List<T> removes = new ArrayList<>(); private final List<T> removes = new ArrayList<>();
private final Map<String, T> mapNow = new HashMap<>(); private final Map<String, T> mapNow = new HashMap<>();
/**
* 合并数据
*
* @param data 当前数据对象
*/
public void merger(DataDaoVo<T> data) {
this.creates.addAll(data.creates);
this.updates.addAll(data.updates);
this.removes.addAll(data.removes);
this.mapNow.putAll(data.mapNow);
}
/** /**
* 将历史数据映射为HashMap * 将历史数据映射为HashMap
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment