Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
ftp_pic
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李辅翼
ftp_pic
Commits
c62693ad
Commit
c62693ad
authored
Aug 21, 2019
by
李辅翼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v14
parent
0e2e5b41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/main/java/com/hikcreate/drv_photo_pic/impl/VehicleImpl.java
+3
-4
No files found.
src/main/java/com/hikcreate/drv_photo_pic/impl/VehicleImpl.java
View file @
c62693ad
...
...
@@ -76,7 +76,7 @@ public class VehicleImpl implements Vehicle {
pstm
.
setString
(
2
,
endTime
);
ResultSet
resultSet
=
pstm
.
executeQuery
();
while
(
resultSet
.
next
())
{
saveToHbase
(
resultSet
,
fileService
,
vehPicTable
);
saveToHbase
(
resultSet
,
vehPicTable
);
}
endTime
=
lastTime
;
resultSet
.
close
();
...
...
@@ -165,7 +165,7 @@ public class VehicleImpl implements Vehicle {
PreparedStatement
pstm
=
connection
.
prepareStatement
(
sql
);
ResultSet
resultSet
=
pstm
.
executeQuery
();
while
(
resultSet
.
next
())
{
saveToHbase
(
resultSet
,
fileService
,
vehPicTable
);
saveToHbase
(
resultSet
,
vehPicTable
);
}
resultSet
.
close
();
pstm
.
close
();
...
...
@@ -195,10 +195,9 @@ public class VehicleImpl implements Vehicle {
* 存储图片
*
* @param resultSet
* @param fileService
* @param vehPicTable
*/
private
synchronized
void
saveToHbase
(
ResultSet
resultSet
,
FileService
fileService
,
Table
vehPicTable
)
{
private
synchronized
void
saveToHbase
(
ResultSet
resultSet
,
Table
vehPicTable
)
{
try
{
String
xh
=
resultSet
.
getString
(
"XH"
);
String
hphm
=
resultSet
.
getString
(
"HPHM"
);
...
...
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