Commit 4882f071 authored by yanzg's avatar yanzg

消除成功接收处理

parent ba0afae6
......@@ -18,6 +18,7 @@ import java.util.List;
/**
* 数据库操作类
*
* @author 颜佐光
*/
@Component
......@@ -73,7 +74,7 @@ public class DbExecuteImpl implements DbExecute {
long start = System.currentTimeMillis();
try {
sql = this.handleParas(sql, paras);
jdbc.query(sql, paras, new RowCallbackHandler() {
jdbc.query(sql, new RowCallbackHandler() {
@Override
public void processRow(ResultSet rs) throws SQLException {
AllBeanRowMapper<T> rowMap = AllBeanRowMapper.getInstance(cls, configDb);
......@@ -81,7 +82,7 @@ public class DbExecuteImpl implements DbExecute {
rowHandle.handle(data);
row.value++;
}
});
}, paras);
} finally {
printSql.print(targetClass, sqlName, start, row.value, sql, paras);
}
......
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