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
8d13e621
authored
Nov 23, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
feat:saas端激活设备写入失败抛异常
parent
4b29c078
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
server-service/src/main/java/com/makeit/service/platform/auth/impl/PlatOrgServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/device/impl/PlatDeviceServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/auth/impl/PlatOrgServiceImpl.java
View file @
8d13e621
...
...
@@ -409,7 +409,12 @@ public class PlatOrgServiceImpl extends ServiceImpl<PlatOrgMapper, PlatOrg>
.
eq
(
StringUtils
.
isNotEmpty
(
param
.
getStatus
()),
PlatOrg:
:
getStatus
,
param
.
getStatus
())
.
eq
(
PlatOrg:
:
getStatus
,
CommonEnum
.
YES
.
getValue
())
);
return
getOrgTree
(
orgList
,
Collections
.
singletonList
(
TenantIdUtil
.
getTenantId
()));
Map
<
String
,
List
<
PlatOrg
>>
parentIdMap
=
orgList
.
stream
().
collect
(
Collectors
.
groupingBy
(
PlatOrg:
:
getParentId
));
orgList
.
forEach
(
vo
->
{
List
<
PlatOrg
>
childList
=
parentIdMap
.
get
(
vo
.
getId
());
vo
.
setChildren
(
childList
);
});
return
orgList
;
}
//平台账号 查询权限范围 生成不一定连续的树结构
...
...
server-service/src/main/java/com/makeit/service/platform/device/impl/PlatDeviceServiceImpl.java
View file @
8d13e621
...
...
@@ -758,7 +758,10 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
map
.
put
(
"license"
,
platDeviceActiveVO
.
getLicense
());
map
.
put
(
"appid"
,
shengwangProperties
.
getAppId
());
devicePropertiesOperateService
.
deviceWriteAttr
(
platDevice
.
getOriDeviceId
(),
map
);
String
result
=
devicePropertiesOperateService
.
deviceWriteAttr
(
platDevice
.
getOriDeviceId
(),
map
);
if
(
StringUtils
.
isNotEmpty
(
result
))
{
throw
new
RuntimeException
(
result
);
}
}
}
...
...
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