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
9a789806
authored
Sep 19, 2023
by
李小龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixbug:
parent
7d2b5627
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
3 deletions
server-common/src/main/java/com/makeit/enums/CodeMessageEnum.java
server-common/src/main/resources/locale/business_messages.properties
server-service/src/main/java/com/makeit/dto/saas/SaasPrivacyConfigDTO.java
server-service/src/main/java/com/makeit/entity/platform/device/PlatDevice.java
server-service/src/main/java/com/makeit/service/platform/alarm/impl/PlatAlarmRecordServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/auth/impl/PlatRoleServiceImpl.java
server-service/src/main/java/com/makeit/service/saas/impl/PlatMenuServiceImpl.java
server-common/src/main/java/com/makeit/enums/CodeMessageEnum.java
View file @
9a789806
...
@@ -29,6 +29,7 @@ public enum CodeMessageEnum {
...
@@ -29,6 +29,7 @@ public enum CodeMessageEnum {
SYSTEM_ERROR_NAME_DUPLICATE
(
500
,
"SYSTEM.ERROR.NAME.DUPLICATE"
),
SYSTEM_ERROR_NAME_DUPLICATE
(
500
,
"SYSTEM.ERROR.NAME.DUPLICATE"
),
SYSTEM_ERROR_NAME_ENG_DUPLICATE
(
500
,
"SYSTEM.ERROR.NAME.ENG.DUPLICATE"
),
SYSTEM_ERROR_NAME_ENG_DUPLICATE
(
500
,
"SYSTEM.ERROR.NAME.ENG.DUPLICATE"
),
SYSTEM_ERROR_CODE_DUPLICATE
(
500
,
"SYSTEM.ERROR.CODE.DUPLICATE"
),
SYSTEM_ERROR_CODE_DUPLICATE
(
500
,
"SYSTEM.ERROR.CODE.DUPLICATE"
),
SYSTEM_ERROR_MENU_CODE_DUPLICATE
(
500
,
"SYSTEM.ERROR.MENU.CODE.DUPLICATE"
),
SYSTEM_ERROR_TENANT_CODE_DUPLICATE
(
500
,
"SYSTEM.ERROR.TENANT.CODE.DUPLICATE"
),
SYSTEM_ERROR_TENANT_CODE_DUPLICATE
(
500
,
"SYSTEM.ERROR.TENANT.CODE.DUPLICATE"
),
SYSTEM_ERROR_DICT_VALUE_DUPLICATE
(
500
,
"SYSTEM.ERROR.DICT.VALUE.DUPLICATE"
),
SYSTEM_ERROR_DICT_VALUE_DUPLICATE
(
500
,
"SYSTEM.ERROR.DICT.VALUE.DUPLICATE"
),
SYSTEM_ERROR_DICT_NOT_EXIST
(
500
,
"SYSTEM.ERROR.DICT.NOT.EXIST"
),
SYSTEM_ERROR_DICT_NOT_EXIST
(
500
,
"SYSTEM.ERROR.DICT.NOT.EXIST"
),
...
...
server-common/src/main/resources/locale/business_messages.properties
View file @
9a789806
...
@@ -113,3 +113,5 @@ PLATFORM.ERROR.ALARM.NOT.FOUND.ELDER=设备空间下无长者
...
@@ -113,3 +113,5 @@ PLATFORM.ERROR.ALARM.NOT.FOUND.ELDER=设备空间下无长者
SYSTEM.ERROR.TENANT.FORBIDDEN
=
该租户被禁用
SYSTEM.ERROR.TENANT.FORBIDDEN
=
该租户被禁用
SYSTEM.ERROR.ORG.FORBIDDEN
=
该组织被禁用
SYSTEM.ERROR.ORG.FORBIDDEN
=
该组织被禁用
SYSTEM.ERROR.MENU.CODE.DUPLICATE
=
跳转页面已存在
server-service/src/main/java/com/makeit/dto/saas/SaasPrivacyConfigDTO.java
View file @
9a789806
...
@@ -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
=
1800
,
message
=
"申请说明最长为18
00字符"
)
@Size
(
max
=
5000
,
message
=
"申请说明最长为50
00字符"
)
@ApiModelProperty
(
value
=
"内容"
)
@ApiModelProperty
(
value
=
"内容"
)
private
String
content
;
private
String
content
;
...
...
server-service/src/main/java/com/makeit/entity/platform/device/PlatDevice.java
View file @
9a789806
...
@@ -41,9 +41,11 @@ public class PlatDevice extends BaseBusEntity {
...
@@ -41,9 +41,11 @@ public class PlatDevice extends BaseBusEntity {
private
String
firmwareVersion
;
private
String
firmwareVersion
;
@ApiModelProperty
(
value
=
"注册时间"
)
@ApiModelProperty
(
value
=
"注册时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
registrationDate
;
private
LocalDateTime
registrationDate
;
@ApiModelProperty
(
value
=
"最后上线时间"
)
@ApiModelProperty
(
value
=
"最后上线时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
lastOnlineData
;
private
LocalDateTime
lastOnlineData
;
@ApiModelProperty
(
value
=
"说明"
)
@ApiModelProperty
(
value
=
"说明"
)
...
...
server-service/src/main/java/com/makeit/service/platform/alarm/impl/PlatAlarmRecordServiceImpl.java
View file @
9a789806
...
@@ -128,7 +128,7 @@ public class PlatAlarmRecordServiceImpl extends ServiceImpl<PlatAlarmRecordMappe
...
@@ -128,7 +128,7 @@ public class PlatAlarmRecordServiceImpl extends ServiceImpl<PlatAlarmRecordMappe
.
le
(
Objects
.
nonNull
(
param
.
getCreateDateTo
()),
BaseEntity:
:
getCreateDate
,
param
.
getCreateDateTo
())
.
le
(
Objects
.
nonNull
(
param
.
getCreateDateTo
()),
BaseEntity:
:
getCreateDate
,
param
.
getCreateDateTo
())
.
eq
(
StringUtils
.
isNotBlank
(
param
.
getAlarmType
()),
PlatAlarmRecord:
:
getAlarmType
,
param
.
getAlarmType
())
.
eq
(
StringUtils
.
isNotBlank
(
param
.
getAlarmType
()),
PlatAlarmRecord:
:
getAlarmType
,
param
.
getAlarmType
())
.
eq
(
StringUtils
.
isNotBlank
(
param
.
getStatus
()),
PlatAlarmRecord:
:
getStatus
,
param
.
getStatus
())
.
eq
(
StringUtils
.
isNotBlank
(
param
.
getStatus
()),
PlatAlarmRecord:
:
getStatus
,
param
.
getStatus
())
.
eq
(
StringUtils
.
isNotBlank
(
param
.
getDealUser
()),
PlatAlarmRecord:
:
getDealUser
,
param
.
getDealUser
())
.
like
(
StringUtils
.
isNotBlank
(
param
.
getDealUser
()),
PlatAlarmRecord:
:
getDealUser
,
param
.
getDealUser
())
.
ge
(
Objects
.
nonNull
(
param
.
getDealDateFrom
()),
PlatAlarmRecord:
:
getDealDate
,
param
.
getDealDateFrom
())
.
ge
(
Objects
.
nonNull
(
param
.
getDealDateFrom
()),
PlatAlarmRecord:
:
getDealDate
,
param
.
getDealDateFrom
())
.
le
(
Objects
.
nonNull
(
param
.
getDealDateTo
()),
PlatAlarmRecord:
:
getDealDate
,
param
.
getDealDateTo
())
.
le
(
Objects
.
nonNull
(
param
.
getDealDateTo
()),
PlatAlarmRecord:
:
getDealDate
,
param
.
getDealDateTo
())
.
eq
(
StringUtils
.
isNotBlank
(
param
.
getOrgId
()),
PlatAlarmRecord:
:
getOrgId
,
param
.
getOrgId
())
.
eq
(
StringUtils
.
isNotBlank
(
param
.
getOrgId
()),
PlatAlarmRecord:
:
getOrgId
,
param
.
getOrgId
())
...
...
server-service/src/main/java/com/makeit/service/platform/auth/impl/PlatRoleServiceImpl.java
View file @
9a789806
...
@@ -82,6 +82,7 @@ implements PlatRoleService {
...
@@ -82,6 +82,7 @@ implements PlatRoleService {
.
like
(
StringUtils
.
isNotBlank
(
dto
.
getName
()),
PlatRole:
:
getName
,
dto
.
getName
())
.
like
(
StringUtils
.
isNotBlank
(
dto
.
getName
()),
PlatRole:
:
getName
,
dto
.
getName
())
.
in
(
dto
.
getNameList
()
!=
null
,
PlatRole:
:
getName
,
dto
.
getNameList
())
.
in
(
dto
.
getNameList
()
!=
null
,
PlatRole:
:
getName
,
dto
.
getNameList
())
.
eq
(
StringUtils
.
isNotBlank
(
dto
.
getOrgId
()),
PlatRole:
:
getOrgId
,
dto
.
getOrgId
())
.
eq
(
StringUtils
.
isNotBlank
(
dto
.
getOrgId
()),
PlatRole:
:
getOrgId
,
dto
.
getOrgId
())
.
eq
(
StringUtils
.
isNotBlank
(
dto
.
getStatus
()),
PlatRole:
:
getStatus
,
dto
.
getStatus
())
.
orderByDesc
(
PlatRole:
:
getCreateDate
);
.
orderByDesc
(
PlatRole:
:
getCreateDate
);
}
}
...
...
server-service/src/main/java/com/makeit/service/saas/impl/PlatMenuServiceImpl.java
View file @
9a789806
...
@@ -172,7 +172,7 @@ public class PlatMenuServiceImpl extends ServiceImpl<PlatMenuMapper, PlatMenu>
...
@@ -172,7 +172,7 @@ public class PlatMenuServiceImpl extends ServiceImpl<PlatMenuMapper, PlatMenu>
PlatMenu
old
=
getOne
(
new
QueryWrapper
<
PlatMenu
>().
lambda
()
PlatMenu
old
=
getOne
(
new
QueryWrapper
<
PlatMenu
>().
lambda
()
.
eq
(
PlatMenu:
:
getCode
,
dto
.
getCode
()));
.
eq
(
PlatMenu:
:
getCode
,
dto
.
getCode
()));
if
(
old
!=
null
&&
!
old
.
getId
().
equals
(
dto
.
getId
()))
{
if
(
old
!=
null
&&
!
old
.
getId
().
equals
(
dto
.
getId
()))
{
throw
new
BusinessException
(
CodeMessageEnum
.
SYSTEM_ERROR_CODE_DUPLICATE
);
throw
new
BusinessException
(
CodeMessageEnum
.
SYSTEM_ERROR_
MENU_
CODE_DUPLICATE
);
}
}
}
}
...
...
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