Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
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
徐少华
midjourney-proxy
Commits
87394ae4
Commit
87394ae4
authored
Nov 03, 2020
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/1003799' into 'master'
feat: [1003799] 第三方资源弹窗换切换式 See merge request rays/pcloud-book!1028
parents
4a705279
a0fa4867
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
15 deletions
+5
-15
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+5
-15
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
87394ae4
...
...
@@ -3074,20 +3074,7 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
Boolean
popState
=
false
;
Integer
popupType
=
RightsNowPopupType
.
ONLINE_COURSE
.
value
;
List
<
RightsNowItem
>
popupList
=
getPopupCourseList
(
rightsSettingId
,
readType
);
//是否点击
Integer
courseClickCount
=
0
;
if
(!
ListUtils
.
isEmpty
(
popupList
)){
RightsNowItem
rightsNowItem
=
popupList
.
get
(
0
);
RightsNowPopup
popup
=
new
RightsNowPopup
();
popup
.
setWechatUserId
(
wechatUserId
);
popup
.
setBookId
(
bookId
);
popup
.
setAdviserId
(
adviserId
);
popup
.
setChannelId
(
channelId
);
popup
.
setPopupType
(
popupType
);
popup
.
setServeId
(
rightsNowItem
.
getServeId
());
popup
.
setServeType
(
rightsNowItem
.
getServeType
());
courseClickCount
=
rightsNowPopupDao
.
getUserPopupClickCountByServe
(
popup
);
}
Integer
courseClickCount
=
rightsNowPopupDao
.
getUserPopupClickCount
(
wechatUserId
,
bookId
,
channelId
,
adviserId
,
popupType
);
//有资源且未点击
if
(!
ListUtils
.
isEmpty
(
popupList
)
&&
courseClickCount
<=
0
){
popState
=
true
;
...
...
@@ -3116,13 +3103,16 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
}
popupList
=
new
ArrayList
<>();
RightsSetting
rightsSetting
=
rightsSettingDAO
.
selectByPrimaryKey
(
rightsSettingId
);
if
(
null
==
rightsSetting
){
return
new
ArrayList
<>();
}
RightsSettingTitle
rightsSettingTitle
=
getRightsSettingTitle
(
rightsSetting
,
RightsNowItemTypeNew
.
ONLINE_COURSE
,
readType
);
if
(
null
!=
rightsSettingTitle
&&
null
!=
rightsSettingTitle
.
getOpenState
()
&&
rightsSettingTitle
.
getOpenState
())
{
List
<
RightsNowItem
>
resourceItems
=
rightsNowItemDao
.
getListByRightsSettingTitleId
(
rightsSettingTitle
.
getId
(),
Collections
.
singletonList
(
RightsNowItemTypeNew
.
ONLINE_COURSE
.
value
));
if
(!
ListUtils
.
isEmpty
(
resourceItems
))
{
fillProductAndApp
(
resourceItems
);
if
(!
ListUtils
.
isEmpty
(
resourceItems
))
{
popupList
.
add
(
resourceItems
.
get
(
0
)
);
popupList
.
add
All
(
resourceItems
);
}
}
}
...
...
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