Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
b1129b69
Commit
b1129b69
authored
May 08, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消除成功接收处理
parent
4882f071
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
DbExecuteImpl.java
.../src/main/java/com/yanzuoguang/db/impl/DbExecuteImpl.java
+8
-2
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/db/impl/DbExecuteImpl.java
View file @
b1129b69
...
...
@@ -74,7 +74,7 @@ public class DbExecuteImpl implements DbExecute {
long
start
=
System
.
currentTimeMillis
();
try
{
sql
=
this
.
handleParas
(
sql
,
paras
);
jdbc
.
query
(
sql
,
new
RowCallbackHandler
()
{
RowCallbackHandler
rowCallbackHandler
=
new
RowCallbackHandler
()
{
@Override
public
void
processRow
(
ResultSet
rs
)
throws
SQLException
{
AllBeanRowMapper
<
T
>
rowMap
=
AllBeanRowMapper
.
getInstance
(
cls
,
configDb
);
...
...
@@ -82,7 +82,13 @@ public class DbExecuteImpl implements DbExecute {
rowHandle
.
handle
(
data
);
row
.
value
++;
}
},
paras
);
};
if
(
paras
!=
null
&&
paras
.
length
>
0
)
{
jdbc
.
query
(
sql
,
rowCallbackHandler
,
paras
);
}
else
{
jdbc
.
query
(
sql
,
rowCallbackHandler
);
}
}
finally
{
printSql
.
print
(
targetClass
,
sqlName
,
start
,
row
.
value
,
sql
,
paras
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment