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
0d846999
Commit
0d846999
authored
Aug 29, 2019
by
李辅翼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v14
parent
d6c4b79b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
34 deletions
+14
-34
src/main/java/com/hikcreate/controller/PicController.java
+3
-1
src/main/java/com/hikcreate/drv_photo_pic/impl/VehicleImpl.java
+7
-1
src/main/java/com/hikcreate/illegalPic/synchronizationDay.java
+0
-28
src/main/java/com/hikcreate/schedul/PicSchedule.java
+1
-1
src/main/resources/application.properties
+3
-3
No files found.
src/main/java/com/hikcreate/controller/PicController.java
View file @
0d846999
...
...
@@ -65,8 +65,10 @@ public class PicController {
* 同步指定时间段车辆图片数据
*/
@GetMapping
(
"/getVehPicStage"
)
public
void
getVehPicStage
(
@RequestParam
(
"start"
)
String
start
,
@RequestParam
(
"end"
)
String
end
)
{
@ResponseBody
public
ResponseEntity
getVehPicStage
(
@RequestParam
(
"start"
)
String
start
,
@RequestParam
(
"end"
)
String
end
)
{
vehicle
.
getVehPicStage
(
start
,
end
);
return
new
ResponseEntity
(
"complete"
,
HttpStatus
.
OK
);
}
...
...
src/main/java/com/hikcreate/drv_photo_pic/impl/VehicleImpl.java
View file @
0d846999
...
...
@@ -263,7 +263,7 @@ public class VehicleImpl implements Vehicle {
put
.
addColumn
(
"info"
.
getBytes
(),
"hpzl"
.
getBytes
(),
(
hpzl
==
null
?
"null"
:
hpzl
).
getBytes
());
put
.
addColumn
(
"info"
.
getBytes
(),
"gxsj"
.
getBytes
(),
(
gxsj
==
null
?
"null"
:
gxsj
).
getBytes
());
byte
[]
bytes
=
sqlHelp
.
blobToBytes
(
zp
);
logger
.
info
(
xh
+
"---------------------"
+
bytes
.
length
);
//
logger.info(xh+"---------------------"+bytes.length);
put
.
addColumn
(
"info"
.
getBytes
(),
"picLen"
.
getBytes
(),
String
.
valueOf
(
bytes
.
length
/
1024
).
getBytes
());
//写入fastdfs
int
count
=
0
;
...
...
@@ -276,6 +276,12 @@ public class VehicleImpl implements Vehicle {
return
;
}
}
//验证
byte
[]
bytesDown
=
fileService
.
downloadFile
(
"/"
+
picUrl
);
if
(
bytesDown
.
length
!=
bytes
.
length
)
{
logger
.
info
(
"length not right:-----------"
+
xh
+
"----------"
+
bytesDown
.
length
);
picUrl
=
uploadFileStor
(
bytes
,
xh
);
}
put
.
addColumn
(
"info"
.
getBytes
(),
"picUrl"
.
getBytes
(),
(
"/"
+
picUrl
).
getBytes
());
vehPicTable
.
put
(
put
);
vehPicTable
.
close
();
...
...
src/main/java/com/hikcreate/illegalPic/synchronizationDay.java
deleted
100644 → 0
View file @
d6c4b79b
package
com
.
hikcreate
.
illegalPic
;
/**
* @author lifuyi
* @date ${Date}
* @description
*/
public
class
synchronizationDay
{
}
src/main/java/com/hikcreate/schedul/PicSchedule.java
View file @
0d846999
...
...
@@ -36,7 +36,7 @@ public class PicSchedule {
/**
* 每天早上9点同步机动车的增量数据
*/
//
@Scheduled(cron = "0 0 9 * * *")
@Scheduled
(
cron
=
"0 0 9 * * *"
)
public
void
getIncrementVehPic
(){
vehicle
.
getIncrementVehPic
();
}
...
...
src/main/resources/application.properties
View file @
0d846999
...
...
@@ -17,10 +17,10 @@ fdfs.thumb-image.width = 150
fdfs.thumb-image.height
=
150
fdfs.tracker-list[0]
=
172.16.25.23
:
22122
fdfs.tracker-list[1]
=
172.16.25.26
:
22122
fdfs.pool.max-total
=
153
fdfs.pool.max-wait-millis
=
1
02
fdfs.pool.max-total
=
200
fdfs.pool.max-wait-millis
=
1
50
#˿
server.port
=
80
99
server.port
=
80
84
hbase.zookeeper.property.clientPort
=
2181
hbase.zookeeper.quorum
=
172.16.25.25,172.16.25.28,172.16.25.24,172.16.25.26,172.16.25.27
...
...
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