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
bb5d78fd
authored
Sep 28, 2023
by
杨伟程
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
老人上传头像接口
parent
4d63c04f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 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/service/platform/elder/impl/PlatElderServiceImpl.java
server-common/src/main/java/com/makeit/enums/CodeMessageEnum.java
View file @
bb5d78fd
...
...
@@ -115,6 +115,8 @@ public enum CodeMessageEnum {
PLATFORM_ERROR_ROOM_OTHER_USED_NOT_DEL
(
500
,
"PLATFORM.ERROR.ROOM.OTHER.USED.NOT.DEL"
),
PLATFORM_ERROR_BED_BIND_DEVICE_NOT_AUTH
(
500
,
"PLATFORM.ERROR.BED.BIND_DEVICE_NOT_AUTH"
),
PLATFORM_ERROR_ELDER_BED_CANT_DEL
(
500
,
"PLATFORM.ERROR.ELDER.BED.CANT.DEL"
),
SYSTEM_ERROR_CANT_CHANGE_TENANT_STATUS
(
500
,
"SYSTEM.ERROR.CANT.CHANGE.TENANT.STATUS"
),
SYSTEM_ERROR_CANT_REMOVE_TENANT_USER_LINK
(
500
,
"SYSTEM.ERROR.CANT.REMOVE.TENANT.USER.LINK"
),
SYSTEM_ERROR_TENANT_ID_NOT_BLANK
(
510
,
"SYSTEM.ERROR.TENANT.ID.NOT.BLANK"
),
...
...
server-common/src/main/resources/locale/business_messages.properties
View file @
bb5d78fd
...
...
@@ -109,6 +109,8 @@ PLATFORM.ERROR.BAD.NOT.DEL=床位已绑定长者或设备,不可删除
PLATFORM.ERROR.ROOM.OTHER.USED.NOT.DEL
=
该房间下有床位有其他长者入住
PLATFORM.ERROR.BED.BIND_DEVICE_NOT_AUTH
=
该床位已绑定设备,请重新选择床位
PLATFORM.ERROR.ELDER.BED.CANT.DEL
=
含入住床位的老人,不可删除
SYSTEM.ERROR.ROLE.ADMIN.CANT.ADD
=
不能在该节点下新增非管理员角色
SYSTEM.ERROR.ROLE.ADMIN.CANT.EDIT
=
管理员角色不能修改
...
...
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderServiceImpl.java
View file @
bb5d78fd
...
...
@@ -829,7 +829,7 @@ public class PlatElderServiceImpl extends ServiceImpl<PlatElderMapper, PlatElder
PlatElder
db
=
getById
(
id
);
if
(
StringUtils
.
isNotBlank
(
db
.
getBedId
()))
{
throw
new
RuntimeException
(
);
throw
new
BusinessException
(
CodeMessageEnum
.
PLATFORM_ERROR_ELDER_BED_CANT_DEL
);
}
removeById
(
id
);
...
...
@@ -842,7 +842,7 @@ public class PlatElderServiceImpl extends ServiceImpl<PlatElderMapper, PlatElder
dbList
.
forEach
(
e
->
{
if
(
StringUtils
.
isNotBlank
(
e
.
getBedId
()))
{
throw
new
RuntimeException
(
);
//TODO ywc 报错具体换
throw
new
BusinessException
(
CodeMessageEnum
.
PLATFORM_ERROR_ELDER_BED_CANT_DEL
);
//TODO ywc 报错具体换
}
});
...
...
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