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
78850a4c
Commit
78850a4c
authored
Jul 17, 2020
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: [1003186] 本书立享权益客户端样式问题
parent
791a5f69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+12
-9
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
78850a4c
...
...
@@ -1000,12 +1000,14 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
List
<
RightsNowItem
>
items
=
Lists
.
newArrayList
();
if
(
CollectionUtils
.
isEmpty
(
nowItems
))
{
// 填充咨询
supplementNews
(
rightsSettingId
,
wechatUserId
,
rightsClassifyId
,
top
,
items
,
bookId
);
supplementNews
(
rightsSettingId
,
wechatUserId
,
rightsClassifyId
,
top
,
items
,
bookId
,
itemType
.
value
);
// 处理权益中的应用/作品
fillProductAndApp
(
items
);
rightsSettingTitle
.
setRightsSettingItemList
(
items
);
return
;
}
// 处理权益中的应用/作品
fillProductAndApp
(
nowItems
);
//
// 处理权益中的应用/作品
//
fillProductAndApp(nowItems);
//移除不能购买的应用或作品
removeCanNotBuy
(
nowItems
);
for
(
RightsNowItem
nowItem
:
nowItems
)
{
...
...
@@ -1017,10 +1019,11 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
if
(
RightsServeTypeEnum
.
NEWS
.
name
().
equalsIgnoreCase
(
rightsSettingTitle
.
getServeType
())){
if
(
items
.
size
()
<
top
)
{
// 填充咨询
supplementNews
(
rightsSettingId
,
wechatUserId
,
rightsClassifyId
,
top
-
items
.
size
(),
items
,
bookId
);
supplementNews
(
rightsSettingId
,
wechatUserId
,
rightsClassifyId
,
top
-
items
.
size
(),
items
,
bookId
,
itemType
.
value
);
}
}
// 处理权益中的应用/作品
fillProductAndApp
(
items
);
rightsSettingTitle
.
setRightsSettingItemList
(
items
);
}
...
...
@@ -1032,13 +1035,13 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
* @Param [rightsSettingId, wechatUserId, rightsClassifyId, top, items]
**/
private
void
supplementNews
(
Long
rightsSettingId
,
Long
wechatUserId
,
Long
rightsClassifyId
,
Integer
top
,
List
<
RightsNowItem
>
items
,
Long
bookId
)
{
Long
bookId
,
Integer
type
)
{
FillRightsSettingAppletsDTO
applets
=
getFillRightsSettingApplets
(
rightsSettingId
,
wechatUserId
,
rightsClassifyId
,
top
,
bookId
);
List
<
AppletNews
>
news
=
applets
.
getDesignatedNews
();
for
(
AppletNews
appletNews
:
news
)
{
items
.
add
(
RightsNowItem
.
builder
().
serveId
(
appletNews
.
getId
()).
serveName
(
appletNews
.
getNewsName
())
.
serveTypeName
(
"资讯"
).
servePic
(
appletNews
.
getPic1
()).
type
(
0
).
jumpType
(
appletNews
.
getJumpType
())
.
jumpUrl
(
appletNews
.
getJumpUrl
()).
build
());
items
.
add
(
RightsNowItem
.
builder
().
serveId
(
appletNews
.
getId
()).
serveName
(
appletNews
.
getNewsName
())
.
serveType
(
RightsServeTypeEnum
.
NEWS
.
name
())
.
serveTypeName
(
"资讯"
).
servePic
(
appletNews
.
getPic1
()).
type
(
type
).
jumpType
(
appletNews
.
getJumpType
())
.
jumpUrl
(
appletNews
.
getJumpUrl
()).
newsType
(
appletNews
.
getType
()).
build
());
}
}
...
...
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