Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
16965067
Commit
16965067
authored
Jul 25, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改弹窗
parent
cad98eb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
ActivityPopupBiz.java
...java/com/xxfc/platform/activity/biz/ActivityPopupBiz.java
+9
-4
No files found.
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/biz/ActivityPopupBiz.java
View file @
16965067
...
...
@@ -50,14 +50,15 @@ public class ActivityPopupBiz extends BaseBiz<ActivityPopupMapper,ActivityPopup>
return
activityPopups
;
}
List
<
Integer
>
collect
=
activityPopups
.
parallelStream
().
map
(
ActivityPopup:
:
getId
).
collect
(
Collectors
.
toList
());
Example
exaple
=
Example
.
builder
(
ActivityPopupUser
.
class
).
where
(
WeekendSqls
.<
ActivityPopupUser
>
custom
().
andIn
(
ActivityPopupUser:
:
getPopupId
,
collect
)
Example
exaple
=
Example
.
builder
(
ActivityPopupUser
.
class
)
.
where
(
WeekendSqls
.<
ActivityPopupUser
>
custom
()
.
andEqualTo
(
ActivityPopupUser:
:
getUserId
,
userInfo
.
getUserid
())
.
andIn
(
ActivityPopupUser:
:
getPopupId
,
collect
)
).
build
();
List
<
ActivityPopupUser
>
activityPopupUsers
=
activityPopupUserBiz
.
selectByExample
(
exaple
);
if
(
activityPopupUsers
==
null
||
activityPopupUsers
.
size
()==
0
)
{
return
activityPopups
;
}
Set
<
Integer
>
popupIdSet
=
activityPopupUsers
.
parallelStream
().
map
(
ActivityPopupUser:
:
getPopupId
).
collect
(
Collectors
.
toSet
());
List
<
ActivityPopup
>
result
=
new
ArrayList
<>();
for
(
ActivityPopup
activityPopup
:
activityPopups
)
{
...
...
@@ -96,7 +97,11 @@ public class ActivityPopupBiz extends BaseBiz<ActivityPopupMapper,ActivityPopup>
}
/**
* 判断是否重复弹窗
* @param userInfo
* @param id
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
setActivityPopup
(
AppUserDTO
userInfo
,
Integer
id
){
if
(
userInfo
!=
null
)
{
...
...
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