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
e4d49c52
Commit
e4d49c52
authored
Nov 10, 2023
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
room status opt;
parent
5cf10dc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
RoomStatusServiceImpl.java
...java/share/system/service/impl/RoomStatusServiceImpl.java
+4
-11
No files found.
share-system/src/main/java/share/system/service/impl/RoomStatusServiceImpl.java
View file @
e4d49c52
...
...
@@ -15,10 +15,7 @@ import share.system.domain.vo.RoomStatusVo;
import
share.system.service.ISOrderService
;
import
share.system.service.ISStoreService
;
import
share.system.service.RoomStatusService
;
import
java.text.ParseException
;
import
java.util.*
;
import
java.util.concurrent.atomic.AtomicReference
;
/**
* @Author wwl
...
...
@@ -51,15 +48,11 @@ public class RoomStatusServiceImpl implements RoomStatusService {
private
List
<
RoomStatusVo
>
generatorRoomStatusList
(
SStore
store
,
Long
roomId
,
List
<
SOrder
>
orderList
,
Date
day
){
String
nowTime
=
"00:00"
;
String
dayStr
=
DateUtils
.
parseDateToStr
(
DateUtils
.
YYYY_MM_DD
,
day
);
//如果day等于当天,判断当前时间是否小于30分钟,小于改为30
if
(
StringUtils
.
equals
(
DateUtils
.
parseDateToStr
(
DateUtils
.
YYYY_MM_DD
,
day
)
,
DateUtils
.
parseDateToStr
(
DateUtils
.
YYYY_MM_DD
,
DateUtils
.
getNowDate
()))){
String
m
=
DateUtils
.
parseDateToStr
(
"m"
,
DateUtils
.
getNowDate
());
if
(
Integer
.
valueOf
(
m
).
compareTo
(
new
Integer
(
30
))
<
0
)
{
nowTime
=
"30"
;
}
//如果day等于当天,nowTime设置为当前时间+30分钟
// if(StringUtils.equals(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD,day)
// ,DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD,DateUtils.getNowDate()))){
// nowTime = DateUtils.parseDateToStr("HH:mm",DateUtils.addMinutes(DateUtils.getNowDate(), Constants.ROOM_LOCK_DELAY_MINUTE));
}
//
}
List
<
RoomStatusVo
>
voList
=
new
ArrayList
<>();
String
finalNowTime
=
nowTime
;
Arrays
.
stream
(
LOCKS
).
forEach
(
lock
->
{
...
...
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