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
8c41de4d
authored
Sep 14, 2023
by
杨伟程
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
设备不填充其他其他信息时 详情不报错
parent
78a56c2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 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 @
8c41de4d
...
@@ -113,11 +113,14 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
...
@@ -113,11 +113,14 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
public
PlatDeviceViewVO
view
(
String
id
)
{
public
PlatDeviceViewVO
view
(
String
id
)
{
PlatDevice
db
=
getById
(
id
);
PlatDevice
db
=
getById
(
id
);
PlatDeviceViewVO
vo
=
BeanDtoVoUtils
.
convert
(
db
,
PlatDeviceViewVO
.
class
);
PlatDeviceOther
other
=
platDeviceOtherService
.
getOne
(
new
QueryWrapper
<
PlatDeviceOther
>().
lambda
()
PlatDeviceOther
other
=
platDeviceOtherService
.
getOne
(
new
QueryWrapper
<
PlatDeviceOther
>().
lambda
()
.
eq
(
PlatDeviceOther:
:
getDeviceId
,
id
));
.
eq
(
PlatDeviceOther:
:
getDeviceId
,
id
));
PlatDeviceViewVO
vo
=
BeanDtoVoUtils
.
convert
(
db
,
PlatDeviceViewVO
.
class
);
if
(
other
!=
null
)
{
BeanUtils
.
copyProperties
(
other
,
vo
);
BeanUtils
.
copyProperties
(
other
,
vo
);
}
vo
.
setId
(
db
.
getId
());
vo
.
setId
(
db
.
getId
());
...
...
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