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
e4b83cf0
authored
Sep 27, 2023
by
李小龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix:
parent
95573178
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
server-service/src/main/java/com/makeit/dto/saas/SaasPrivacyConfigDTO.java
server-service/src/main/java/com/makeit/service/platform/alarm/impl/PlatAlarmRecordServiceImpl.java
server-service/src/main/java/com/makeit/service/saas/impl/PlatMenuServiceImpl.java
server-service/src/main/java/com/makeit/task/IotSyncTask.java
server-service/src/main/java/com/makeit/dto/saas/SaasPrivacyConfigDTO.java
View file @
e4b83cf0
...
@@ -26,7 +26,7 @@ public class SaasPrivacyConfigDTO implements Serializable {
...
@@ -26,7 +26,7 @@ public class SaasPrivacyConfigDTO implements Serializable {
@ApiModelProperty
(
"标题"
)
@ApiModelProperty
(
"标题"
)
private
String
title
;
private
String
title
;
@Size
(
max
=
5000
,
message
=
"
申请说明
最长为5000字符"
)
@Size
(
max
=
5000
,
message
=
"
内容长度
最长为5000字符"
)
@ApiModelProperty
(
value
=
"内容"
)
@ApiModelProperty
(
value
=
"内容"
)
private
String
content
;
private
String
content
;
...
...
server-service/src/main/java/com/makeit/service/platform/alarm/impl/PlatAlarmRecordServiceImpl.java
View file @
e4b83cf0
...
@@ -433,7 +433,11 @@ public class PlatAlarmRecordServiceImpl extends ServiceImpl<PlatAlarmRecordMappe
...
@@ -433,7 +433,11 @@ public class PlatAlarmRecordServiceImpl extends ServiceImpl<PlatAlarmRecordMappe
m
.
reset
();
m
.
reset
();
int
i
=
0
;
int
i
=
0
;
while
(
m
.
find
())
{
while
(
m
.
find
())
{
m
.
appendReplacement
(
sb
,
param
.
get
(
i
));
String
paramValue
=
""
;
if
(
param
.
size
()>
i
)
{
paramValue
=
param
.
get
(
i
);
}
m
.
appendReplacement
(
sb
,
paramValue
);
i
++;
i
++;
}
}
m
.
appendTail
(
sb
);
m
.
appendTail
(
sb
);
...
...
server-service/src/main/java/com/makeit/service/saas/impl/PlatMenuServiceImpl.java
View file @
e4b83cf0
...
@@ -169,10 +169,12 @@ public class PlatMenuServiceImpl extends ServiceImpl<PlatMenuMapper, PlatMenu>
...
@@ -169,10 +169,12 @@ public class PlatMenuServiceImpl extends ServiceImpl<PlatMenuMapper, PlatMenu>
* @param dto
* @param dto
*/
*/
private
void
checkCode
(
PlatMenuDTOVO
dto
)
{
private
void
checkCode
(
PlatMenuDTOVO
dto
)
{
PlatMenu
old
=
getOne
(
new
QueryWrapper
<
PlatMenu
>().
lambda
()
if
(
StringUtils
.
isNotBlank
(
dto
.
getCode
()))
{
.
eq
(
PlatMenu:
:
getCode
,
dto
.
getCode
()));
PlatMenu
old
=
getOne
(
new
QueryWrapper
<
PlatMenu
>().
lambda
()
if
(
old
!=
null
&&
!
old
.
getId
().
equals
(
dto
.
getId
()))
{
.
eq
(
StringUtils
.
isNotBlank
(
dto
.
getCode
()),
PlatMenu:
:
getCode
,
dto
.
getCode
()));
throw
new
BusinessException
(
CodeMessageEnum
.
SYSTEM_ERROR_MENU_CODE_DUPLICATE
);
if
(
old
!=
null
&&
!
old
.
getId
().
equals
(
dto
.
getId
()))
{
throw
new
BusinessException
(
CodeMessageEnum
.
SYSTEM_ERROR_MENU_CODE_DUPLICATE
);
}
}
}
}
}
...
...
server-service/src/main/java/com/makeit/task/IotSyncTask.java
View file @
e4b83cf0
...
@@ -107,7 +107,7 @@ public class IotSyncTask {
...
@@ -107,7 +107,7 @@ public class IotSyncTask {
}
}
platDevice
.
setOriDeviceId
(
iotDevice
.
getId
());
platDevice
.
setOriDeviceId
(
iotDevice
.
getId
());
platDevice
.
setName
(
iotDevice
.
getName
());
platDevice
.
setName
(
iotDevice
.
getName
());
platDevice
.
setOrgId
(
tenantId
);
//
platDevice.setOrgId(tenantId);
String
productName
=
iotDevice
.
getProductName
();
String
productName
=
iotDevice
.
getProductName
();
platDevice
.
setProductName
(
productName
);
platDevice
.
setProductName
(
productName
);
platDevice
.
setProductId
(
iotDevice
.
getProductId
());
platDevice
.
setProductId
(
iotDevice
.
getProductId
());
...
...
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