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
7f74ab0b
Commit
7f74ab0b
authored
Feb 20, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into dev-lms
parents
287958e3
d6b32b07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
DeviceOpServiceImpl.java
...n/java/share/system/service/impl/DeviceOpServiceImpl.java
+2
-2
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+12
-0
No files found.
share-system/src/main/java/share/system/service/impl/DeviceOpServiceImpl.java
View file @
7f74ab0b
...
@@ -157,7 +157,7 @@ public class DeviceOpServiceImpl implements DeviceOpService {
...
@@ -157,7 +157,7 @@ public class DeviceOpServiceImpl implements DeviceOpService {
}
}
if
(
DeviceType
.
DEVICE_0001
.
getCode
().
equals
(
device
.
getDevType
()))
{
if
(
DeviceType
.
DEVICE_0001
.
getCode
().
equals
(
device
.
getDevType
()))
{
// 取电开关
// 取电开关
this
.
deviceOpInit
(
device
.
getDevId
(),
deviceParam
.
getPhone
(),
OpTypeEnum
.
GET_ELECTRIC
.
getCode
(),
true
,
2
L
);
this
.
deviceOpInit
(
device
.
getDevId
(),
deviceParam
.
getPhone
(),
OpTypeEnum
.
GET_ELECTRIC
.
getCode
(),
true
,
4
L
);
}
}
}
}
...
@@ -182,7 +182,7 @@ public class DeviceOpServiceImpl implements DeviceOpService {
...
@@ -182,7 +182,7 @@ public class DeviceOpServiceImpl implements DeviceOpService {
}
}
if
(
DeviceType
.
DEVICE_0001
.
getCode
().
equals
(
device
.
getDevType
()))
{
if
(
DeviceType
.
DEVICE_0001
.
getCode
().
equals
(
device
.
getDevType
()))
{
// 取电开关
// 取电开关
this
.
deviceOpInit
(
device
.
getDevId
(),
phone
,
OpTypeEnum
.
GET_ELECTRIC
.
getCode
(),
true
,
2
L
);
this
.
deviceOpInit
(
device
.
getDevId
(),
phone
,
OpTypeEnum
.
GET_ELECTRIC
.
getCode
(),
true
,
4
L
);
}
}
}
}
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
7f74ab0b
...
@@ -357,6 +357,12 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -357,6 +357,12 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
if
(
ObjectUtil
.
isNull
(
user
))
{
if
(
ObjectUtil
.
isNull
(
user
))
{
throw
new
BaseException
(
"您的登录已过期,请先登录"
);
throw
new
BaseException
(
"您的登录已过期,请先登录"
);
}
}
if
(
StringUtils
.
isEmpty
(
user
.
getPhone
()))
{
user
=
sConsumerService
.
getById
(
user
.
getId
());
if
(
StringUtils
.
isEmpty
(
user
.
getPhone
()))
{
throw
new
BaseException
(
"请绑定手机号"
);
}
}
SStore
sStore
=
storeService
.
getById
(
request
.
getStoreId
());
SStore
sStore
=
storeService
.
getById
(
request
.
getStoreId
());
SRoom
room
=
roomService
.
getById
(
request
.
getRoomId
());
SRoom
room
=
roomService
.
getById
(
request
.
getRoomId
());
if
(
ObjectUtil
.
isNotEmpty
(
room
)
&&
room
.
getIsDirtyRoom
().
equals
(
YesNoEnum
.
yes
.
getIndex
()))
{
if
(
ObjectUtil
.
isNotEmpty
(
room
)
&&
room
.
getIsDirtyRoom
().
equals
(
YesNoEnum
.
yes
.
getIndex
()))
{
...
@@ -962,6 +968,12 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -962,6 +968,12 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
throw
new
BaseException
(
"订单更新失败"
);
throw
new
BaseException
(
"订单更新失败"
);
}
}
}
}
//判断房间是否是脏房,脏房新增保洁订单
SRoomVo
sRoomVo
=
roomService
.
selectSRoomById
(
sOrder
.
getRoomId
());
if
(
sRoomVo
.
getIsDirtyRoom
().
equals
(
YesNoEnum
.
yes
.
getIndex
()))
{
//新增保洁任务
cleanRecordsService
.
addSCleanRecords
(
sOrder
.
getStoreId
(),
sOrder
.
getRoomId
());
}
return
Boolean
.
TRUE
;
return
Boolean
.
TRUE
;
}
}
...
...
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