记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
2d50e1f9
Commit
2d50e1f9
authored
Jan 14, 2022
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人体检测-更新redis不全导致的错误
parent
973e81c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
KylinCameraController.java
...vice/platform/controller/kylin/KylinCameraController.java
+15
-12
No files found.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/controller/kylin/KylinCameraController.java
View file @
2d50e1f9
...
...
@@ -85,7 +85,7 @@ public class KylinCameraController {
@RequestBody
String
requestBody
)
{
try
{
log
.
info
(
"接收截图回调请求:[requestBody={}"
,
requestBody
);
log
.
info
(
"接收截图回调请求:[requestBody={}
]
"
,
requestBody
);
// TODO: 2022/1/10 jxltodo 验签
ObjectMapper
configure
=
JsonUtils
.
OM
().
configure
(
MapperFeature
.
ACCEPT_CASE_INSENSITIVE_PROPERTIES
,
true
);
...
...
@@ -139,27 +139,30 @@ public class KylinCameraController {
Wrappers
.
lambdaQuery
(
KylinCamera
.
class
)
.
eq
(
KylinCamera:
:
getGbId
,
gbId
)
);
KylinCamera
camera
=
KylinCamera
.
getNew
();
camera
.
setStatus
(
devicesVo
.
getStatus
());
JsonNode
jsonNode
=
JsonUtils
.
fromJson
(
devicesVo
.
getDescription
(),
JsonNode
.
class
);
int
siteType
=
jsonNode
.
get
(
"siteType"
).
asInt
();
String
fieldId
=
jsonNode
.
get
(
"fieldId"
).
asText
();
fieldIds
.
add
(
fieldId
);
camera
.
setSiteType
(
siteType
);
camera
.
setFieldId
(
fieldId
);
camera
.
setGbId
(
gbId
);
if
(
null
==
kylinCamera
)
{
camera
.
setCameraId
(
IDGenerator
.
nextSnowId
());
camera
.
setImgUrl
(
"https://camera.zhengzai.tv/camera/live/"
.
concat
(
gbId
).
concat
(
".jpg"
));
cameraMapper
.
insert
(
camera
);
kylinCamera
=
KylinCamera
.
getNew
();
kylinCamera
.
setCameraId
(
IDGenerator
.
nextSnowId
());
kylinCamera
.
setGbId
(
gbId
);
kylinCamera
.
setStatus
(
devicesVo
.
getStatus
());
kylinCamera
.
setSiteType
(
siteType
);
kylinCamera
.
setFieldId
(
fieldId
);
kylinCamera
.
setImgUrl
(
"https://camera.zhengzai.tv/camera/live/"
.
concat
(
gbId
).
concat
(
".jpg"
));
cameraMapper
.
insert
(
kylinCamera
);
}
else
{
camera
.
setUpdatedAt
(
LocalDateTime
.
now
());
kylinCamera
.
setStatus
(
devicesVo
.
getStatus
());
kylinCamera
.
setSiteType
(
siteType
);
kylinCamera
.
setFieldId
(
fieldId
);
kylinCamera
.
setUpdatedAt
(
LocalDateTime
.
now
());
cameraMapper
.
update
(
c
amera
,
kylinC
amera
,
Wrappers
.
lambdaUpdate
(
KylinCamera
.
class
).
eq
(
KylinCamera:
:
getGbId
,
gbId
)
);
}
dataUtils
.
setCameraDeviceInfo
(
c
amera
);
dataUtils
.
setCameraDeviceInfo
(
kylinC
amera
);
}
dataUtils
.
delCameraDevicesList
();
...
...
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