Commit 6737a7a4 authored by yanzg's avatar yanzg

身份证识别

parent 66f92057
...@@ -74,6 +74,14 @@ public abstract class BaseDaoSql { ...@@ -74,6 +74,14 @@ public abstract class BaseDaoSql {
this.db = db; this.db = db;
} }
public <T extends InitDao> void initList(Collection<T> list) {
for (T item : list) {
if (item != null) {
item.init();
}
}
}
/** /**
* 获取数据库执行类 * 获取数据库执行类
* *
......
...@@ -220,10 +220,6 @@ public class AllBeanRowMapper<T> implements RowMapper<T> { ...@@ -220,10 +220,6 @@ public class AllBeanRowMapper<T> implements RowMapper<T> {
} }
} }
if (mappedObject instanceof InitDao) {
((InitDao) mappedObject).init();
}
return mappedObject; return mappedObject;
} }
......
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