Commit 4882f071 authored by yanzg's avatar yanzg

消除成功接收处理

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