Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
14630cf4
authored
Feb 26, 2024
by
罗志长
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
feat: saas设备详情读取属性
parent
0d971952
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
server-service/src/main/java/com/makeit/service/platform/device/impl/PlatDeviceServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/device/impl/PlatDeviceServiceImpl.java
View file @
14630cf4
...
@@ -661,6 +661,21 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
...
@@ -661,6 +661,21 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
deviceOtherLambdaQueryWrapper
.
eq
(
PlatDeviceOther:
:
getDeviceId
,
platDevice
.
getId
());
deviceOtherLambdaQueryWrapper
.
eq
(
PlatDeviceOther:
:
getDeviceId
,
platDevice
.
getId
());
PlatDeviceOther
platDeviceOther
=
platDeviceOtherService
.
getOne
(
deviceOtherLambdaQueryWrapper
,
false
);
PlatDeviceOther
platDeviceOther
=
platDeviceOtherService
.
getOne
(
deviceOtherLambdaQueryWrapper
,
false
);
PlatDeviceBaseAttrDTO
iotAttr
=
getDeviceBaseAttrDTO
(
platDevice
);
if
(
platDeviceOther
!=
null
)
{
String
oldAttr
=
platDeviceOther
.
getAttribute
();
if
(
StringUtils
.
isBlank
(
platDeviceOther
.
getAttribute
()))
{
PlatDeviceBaseAttrDTO
defaultAttr
=
getDefaultAttr
(
platDevice
);
String
attr
=
defaultAttr
!=
null
?
JSON
.
toJSONString
(
defaultAttr
)
:
null
;
platDeviceOther
.
setAttribute
(
attr
);
}
String
attr
=
getAfterComparisonAttr
(
iotAttr
,
platDeviceOther
.
getAttribute
());
if
(!
StringUtils
.
equals
(
oldAttr
,
attr
))
{
platDeviceOther
.
setAttribute
(
attr
);
platDeviceOtherService
.
updateById
(
platDeviceOther
);
}
}
DeviceDetail
detail
=
iotProductDeviceService
.
getDetail
(
platDevice
.
getOriDeviceId
());
DeviceDetail
detail
=
iotProductDeviceService
.
getDetail
(
platDevice
.
getOriDeviceId
());
if
(
detail
!=
null
)
{
if
(
detail
!=
null
)
{
if
(
detail
.
getFirmwareInfo
()
!=
null
)
{
if
(
detail
.
getFirmwareInfo
()
!=
null
)
{
...
...
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