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
e90509c6
Commit
e90509c6
authored
Jan 02, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动完成保洁任务增加断电
parent
4a00eb20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
SCleanRecordsServiceImpl.java
...a/share/system/service/impl/SCleanRecordsServiceImpl.java
+7
-0
No files found.
share-system/src/main/java/share/system/service/impl/SCleanRecordsServiceImpl.java
View file @
e90509c6
package
share
.
system
.
service
.
impl
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -45,6 +46,11 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
@Autowired
private
DeviceOpService
deviceOpService
;
//管理员手机号
private
static
final
String
phone
=
"13888888888"
;
//5秒延迟
private
static
final
Long
FIVE
=
5L
;
/**
* 查询保洁记录
*
...
...
@@ -199,6 +205,7 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
sCleanRecords
.
setStartDate
(
now
);
sCleanRecords
.
setEndDate
(
now
);
sCleanRecords
.
setUpdateTime
(
now
);
deviceOpService
.
openOrCloseDevice
(
sCleanRecords
.
getRoomId
(),
phone
,
OpTypeEnum
.
CUT_ELECTRIC
.
getCode
(),
true
,
FIVE
);
}
return
0
<
baseMapper
.
updateBatch
(
list
);
}
...
...
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