Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
向汉
/
uc-engine
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
15ff56ea
...
15ff56ea870ce5ddb9fcdf0b39f29a46a8acd480
authored
2022-06-15 11:20:45 +0800
by
xianghan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.修复添加观影记录时循环添加的bug
1 parent
7b819cbb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
22 deletions
member-service-impl/src/main/java/com/topdraw/business/process/service/impl/UserOperationServiceImpl.java
member-service-impl/src/main/java/com/topdraw/business/process/service/impl/UserOperationServiceImpl.java
View file @
15ff56e
...
...
@@ -887,9 +887,8 @@ public class UserOperationServiceImpl implements UserOperationService {
}
else
{
for
(
UserCollectionDetail
collectionDetail
:
userCollectionDetailOptional
)
{
//观影记录同一天只存一条记录
boolean
sameDay
=
DateUtil
.
isSameDay
(
new
Date
(
c
ollectionDetail
.
getCreateTime
().
getTime
()),
new
Date
());
boolean
sameDay
=
DateUtil
.
isSameDay
(
new
Date
(
userC
ollectionDetail
.
getCreateTime
().
getTime
()),
new
Date
());
if
(
sameDay
)
{
continue
;
}
else
{
...
...
@@ -902,26 +901,6 @@ public class UserOperationServiceImpl implements UserOperationService {
}
}
/*if (userCollectionDetailOptional.isPresent()) {
//观影记录同一天只存一条记录
boolean sameDay = DateUtil.isSameDay(new Date(userCollectionDetailOptional.get().getCreateTime().getTime()), new Date());
if (sameDay) {
userCollectionDetail.setId(userCollectionDetailOptional.get().getId());
userCollectionDetailRepository.save(userCollectionDetail);
} else {
continue;
}
} else {
userCollectionDetail.setId(null)
.setUserCollectionId(userCollection.getId());
userCollectionDetailRepository.save(userCollectionDetail);
}*/
}
}
}
catch
(
Exception
e
)
{
...
...
Please
register
or
sign in
to post a comment