Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
fanxing3-integration
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e19283fe
authored
Jun 13, 2022
by
毛树良
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
<fix>:优化推送
1 parent
74a32d0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
fanxing-docking-gb1400/src/main/java/com/viontech/handler/TrafficDataConvertHandler.java
fanxing-docking-gb1400/src/main/java/com/viontech/handler/TrafficDataConvertHandler.java
View file @
e19283f
...
...
@@ -72,6 +72,9 @@ public class TrafficDataConvertHandler {
//设置违法数据
for
(
TrafficMongoModel
trafficMongoModel
:
trafficMongoModels
)
{
MotorVehicleObj
.
MotorVehicleObject
vehicle
=
tranferToMotorVehicleObject
(
trafficMongoModel
);
if
(
vehicle
==
null
)
{
continue
;
}
vehicleList
.
add
(
vehicle
);
if
(
""
.
equals
(
infoIds
.
toString
()))
{
...
...
@@ -80,6 +83,9 @@ public class TrafficDataConvertHandler {
infoIds
.
append
(
","
+
vehicle
.
getMotorVehicleID
());
}
}
if
(
CollectionUtils
.
isEmpty
(
vehicleList
))
{
return
null
;
}
vehicleObj
.
setMotorVehicleObject
(
vehicleList
);
subNotifObj
.
setInfoIDs
(
infoIds
.
toString
());
...
...
@@ -349,7 +355,7 @@ public class TrafficDataConvertHandler {
ResponseEntity
<
String
>
responseEntity
=
restTemplate
.
getForEntity
(
geturl
,
String
.
class
);
if
(
responseEntity
.
getStatusCodeValue
()
==
200
)
{
String
picget
=
responseEntity
.
getBody
();
log
.
info
(
"图片服务查询
响应videoget={}"
,
picget
);
log
.
info
(
"图片服务查询
[{}],响应videoget={}"
,
pic_unid
,
picget
);
if
(
StringUtils
.
isNotBlank
(
picget
))
{
JSONObject
picJson
=
JSONObject
.
parseObject
(
picget
);
if
(
picJson
!=
null
&&
StringUtils
.
isNotBlank
(
picJson
.
getString
(
"pic_url"
)))
{
...
...
@@ -357,7 +363,7 @@ public class TrafficDataConvertHandler {
}
}
}
else
{
log
.
info
(
"error-------------图片服务查询响应失败
"
);
log
.
info
(
"error-------------图片服务查询响应失败
[{}]"
,
pic_unid
);
}
return
""
;
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment