Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
朱海
/
VVAS-PicGroup
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7b1527d1
authored
Aug 09, 2024
by
朱海
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[chg]接待时间早于进店时间的,将接待时间设置为进店时间后一秒
1 parent
6f4b0fab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
src/main/java/com/viontech/keliu/service/impl/PersonRecordServiceImpl.java
src/main/java/com/viontech/keliu/service/impl/PersonRecordServiceImpl.java
View file @
7b1527d
...
...
@@ -264,7 +264,12 @@ public class PersonRecordServiceImpl implements PersonRecordService {
List
<
DPersonReception
>
personReceptionList
=
dPersonReceptionDao
.
getPersonReceptionList
(
dPersonRecord
.
getMallId
(),
dPersonRecord
.
getCountDate
(),
dPersonRecord
.
getPersonUnid
(),
dPersonRecord
.
getArriveTime
(),
dPersonRecord
.
getLeaveTime
());
if
(
CollectionUtils
.
isNotEmpty
(
personReceptionList
))
{
dPersonRecord
.
setReceptionCount
(
personReceptionList
.
size
());
dPersonRecord
.
setReceptionTime
(
personReceptionList
.
get
(
0
).
getStartTime
());
Date
startTime
=
personReceptionList
.
get
(
0
).
getStartTime
();
//接待时间早于到店时间,接待时间为进店时间+1秒
if
(
startTime
.
before
(
dPersonRecord
.
getArriveTime
()))
{
startTime
=
DateUtil
.
offsetSecond
(
dPersonRecord
.
getArriveTime
(),
1
);
}
dPersonRecord
.
setReceptionTime
(
startTime
);
dPersonRecord
.
setReceptionDuration
(
personReceptionList
.
stream
().
mapToLong
(
DPersonReception:
:
getDuration
).
sum
());
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment