Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_ht
Commits
6682a26e
Commit
6682a26e
authored
Dec 27, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备判断问题
parent
e67e542a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+2
-2
No files found.
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
6682a26e
...
@@ -891,7 +891,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -891,7 +891,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
device
.
setRoomId
(
sOrder
.
getRoomId
());
device
.
setRoomId
(
sOrder
.
getRoomId
());
device
.
setDevType
(
DeviceType
.
DEVICE_CCEE
.
getCode
());
device
.
setDevType
(
DeviceType
.
DEVICE_CCEE
.
getCode
());
List
<
Device
>
deviceList
=
deviceService
.
selectDeviceList
(
device
);
List
<
Device
>
deviceList
=
deviceService
.
selectDeviceList
(
device
);
if
(
CollectionUtils
.
is
Not
Empty
(
deviceList
))
{
if
(
CollectionUtils
.
isEmpty
(
deviceList
))
{
throw
new
BaseException
(
"设备不存在!"
);
throw
new
BaseException
(
"设备不存在!"
);
}
}
if
(
sOrder
.
getStatus
().
equals
(
OrderStatusEnum
.
UNUSED
.
getCode
()))
{
if
(
sOrder
.
getStatus
().
equals
(
OrderStatusEnum
.
UNUSED
.
getCode
()))
{
...
@@ -921,7 +921,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -921,7 +921,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
device1
.
setRoomId
(
sOrder
.
getRoomId
());
device1
.
setRoomId
(
sOrder
.
getRoomId
());
device1
.
setDevType
(
DeviceType
.
DEVICE_0001
.
getCode
());
device1
.
setDevType
(
DeviceType
.
DEVICE_0001
.
getCode
());
List
<
Device
>
deviceList1
=
deviceService
.
selectDeviceList
(
device1
);
List
<
Device
>
deviceList1
=
deviceService
.
selectDeviceList
(
device1
);
if
(
CollectionUtils
.
is
Not
Empty
(
deviceList1
))
{
if
(
CollectionUtils
.
isEmpty
(
deviceList1
))
{
throw
new
BaseException
(
"设备不存在!"
);
throw
new
BaseException
(
"设备不存在!"
);
}
}
redisUtils
.
delete
(
ReceiptRdeisEnum
.
ORDER_NO
.
getValue
()
+
sOrder
.
getOrderNo
());
redisUtils
.
delete
(
ReceiptRdeisEnum
.
ORDER_NO
.
getValue
()
+
sOrder
.
getOrderNo
());
...
...
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