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
0967fa7d
Commit
0967fa7d
authored
Feb 26, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into dev-lms
parents
941000a0
995cb851
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
SCleanRecordsServiceImpl.java
...a/share/system/service/impl/SCleanRecordsServiceImpl.java
+13
-8
No files found.
share-system/src/main/java/share/system/service/impl/SCleanRecordsServiceImpl.java
View file @
0967fa7d
package
share
.
system
.
service
.
impl
;
import
java.util.*
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
import
cn.hutool.core.date.DateUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
share.common.constant.Constants
;
import
share.common.core.page.TableDataInfo
;
import
share.common.enums.*
;
import
share.common.utils.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
share.system.domain.*
;
import
share.system.domain.vo.FrontTokenComponent
;
import
share.system.domain.vo.SCleanRecordsVo
;
import
share.system.mapper.*
;
import
share.system.service.*
;
import
java.util.*
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
/**
* 保洁记录Service业务层处理
*
...
...
@@ -467,7 +467,12 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
throw
new
RuntimeException
(
"当前保洁任务不存在!"
);
}
int
index
=
updateSCleanRecords
(
sCleanRecords
);
if
(
index
>
0
)
{
//查询当前房间是否有正在使用的订单
SOrder
one
=
orderService
.
getOne
(
new
LambdaQueryWrapper
<
SOrder
>().
eq
(
SOrder:
:
getRoomId
,
records
.
getRoomId
()).
eq
(
SOrder:
:
getStatus
,
OrderStatusEnum
.
INUSE
.
getCode
()));
//没有,断电
if
(
ObjectUtils
.
isEmpty
(
one
))
{
// 断电
deviceOpService
.
openOrCloseDevice
(
records
.
getRoomId
(),
records
.
getPhone
(),
OpTypeEnum
.
CUT_ELECTRIC
.
getCode
(),
true
,
5
);
}
...
...
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