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
22ff5980
authored
Sep 20, 2023
by
lzy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
房间判断删除
parent
0aae7ba9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
server-service/src/main/java/com/makeit/service/platform/space/impl/PlatRoomServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/space/impl/PlatRoomServiceImpl.java
View file @
22ff5980
...
...
@@ -12,6 +12,7 @@ import com.makeit.dto.platform.workstation.WorkStationQueryDTO;
import
com.makeit.entity.platform.space.PlatBed
;
import
com.makeit.entity.platform.space.PlatRoom
;
import
com.makeit.enums.CodeMessageEnum
;
import
com.makeit.enums.CommonEnum
;
import
com.makeit.exception.BusinessException
;
import
com.makeit.mapper.platform.space.PlatRoomMapper
;
import
com.makeit.service.platform.space.PlatBedService
;
...
...
@@ -97,6 +98,7 @@ public class PlatRoomServiceImpl extends ServiceImpl<PlatRoomMapper, PlatRoom> i
LambdaQueryWrapper
<
PlatBed
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
in
(
PlatBed:
:
getRoomId
,
ids
);
queryWrapper
.
eq
(
PlatBed:
:
getStatus
,
CommonEnum
.
NO
.
getValue
());
if
(
platBedService
.
count
(
queryWrapper
)
>
0
)
{
throw
new
BusinessException
(
CodeMessageEnum
.
PLATFORM_ERROR_ROOM_EXIT_BAD
);
}
...
...
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