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
e936c065
Commit
e936c065
authored
Aug 19, 2019
by
李辅翼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v12
parent
5e583e11
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
src/main/java/com/hikcreate/drv_photo_pic/impl/SqlHelp.java
+2
-3
src/main/java/com/hikcreate/drv_photo_pic/impl/VehicleImpl.java
+1
-2
src/main/java/com/hikcreate/schedul/PicSchedule.java
+1
-1
No files found.
src/main/java/com/hikcreate/drv_photo_pic/impl/SqlHelp.java
View file @
e936c065
...
...
@@ -57,8 +57,7 @@ public class SqlHelp {
}
if
(
colValue
[
0
]
==
null
){
flag1
=
true
;
}
else
if
(
colValue
[
0
]
!=
null
&&
(
gxsj
.
substring
(
0
,
19
).
compareTo
(
colValue
[
1
].
substring
(
0
,
19
))
<
0
||
gxsj
.
substring
(
0
,
19
).
compareTo
(
colValue
[
1
].
substring
(
0
,
19
))
==
0
))
{
}
else
if
(
colValue
[
0
]
!=
null
&&
(
gxsj
.
substring
(
0
,
19
).
compareTo
(
colValue
[
1
].
substring
(
0
,
19
))
<
0
))
{
flag1
=
false
;
}
else
{
logger
.
info
(
gxsj
+
"---------------"
+
colValue
[
1
]);
...
...
@@ -71,7 +70,7 @@ public class SqlHelp {
}
}
public
static
byte
[]
blobToByteZp
(
BLOB
zp
)
{
public
s
ynchronized
s
tatic
byte
[]
blobToByteZp
(
BLOB
zp
)
{
try
{
long
length
=
zp
.
length
();
byte
[]
bytes
=
new
byte
[(
int
)
length
];
...
...
src/main/java/com/hikcreate/drv_photo_pic/impl/VehicleImpl.java
View file @
e936c065
...
...
@@ -144,7 +144,6 @@ public class VehicleImpl implements Vehicle {
while
(
resultSet
.
next
())
{
saveToHbase
(
resultSet
,
fileService
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
finally
{
...
...
@@ -179,7 +178,7 @@ public class VehicleImpl implements Vehicle {
* @param resultSet
* @param fileService
*/
private
void
saveToHbase
(
ResultSet
resultSet
,
FileService
fileService
)
{
private
synchronized
void
saveToHbase
(
ResultSet
resultSet
,
FileService
fileService
)
{
try
{
xh
=
resultSet
.
getString
(
"XH"
);
hphm
=
resultSet
.
getString
(
"HPHM"
);
...
...
src/main/java/com/hikcreate/schedul/PicSchedule.java
View file @
e936c065
...
...
@@ -47,7 +47,7 @@ public class PicSchedule {
/**
* 每天早上9点同步机动车的增量数据
*/
//
@Scheduled(cron = "0 0 9 * * *")
@Scheduled
(
cron
=
"0 0 9 * * *"
)
public
void
getIncrementVehPic
(){
vehicle
.
getIncrementVehPic
();
}
...
...
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