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
eda1133d
Commit
eda1133d
authored
May 29, 2020
by
裴大威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-zyq-1023490' into 'master'
1023490 立享权益bug See merge request rays/pcloud-book!747
parents
e52f05b1
5090179c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+4
-2
RightsNowItem.java
...a/com/pcloud/book/rightsSetting/entity/RightsNowItem.java
+3
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
eda1133d
...
@@ -905,8 +905,6 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
...
@@ -905,8 +905,6 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
}
}
List
<
RightsNowItem
>
nowItems
=
rightsNowItemDao
.
getListByRightsSettingId
(
rightsSetting
.
getId
(),
types
);
List
<
RightsNowItem
>
nowItems
=
rightsNowItemDao
.
getListByRightsSettingId
(
rightsSetting
.
getId
(),
types
);
if
(!
ListUtils
.
isEmpty
(
nowItems
))
{
if
(!
ListUtils
.
isEmpty
(
nowItems
))
{
// 填充应用、作品、社群、资讯
fillProductAndApp
(
nowItems
);
rightsSettingTitler4Online
.
setRightsSettingItemList
(
rightsSettingTitler4Online
.
setRightsSettingItemList
(
nowItems
.
stream
().
filter
(
s
->
RightsNowItemType
.
ONLINE_COURSE
.
value
.
equals
(
s
.
getType
())).
collect
(
Collectors
.
toList
()));
nowItems
.
stream
().
filter
(
s
->
RightsNowItemType
.
ONLINE_COURSE
.
value
.
equals
(
s
.
getType
())).
collect
(
Collectors
.
toList
()));
rightsSettingTitler4Learningtool
.
setRightsSettingItemList
(
rightsSettingTitler4Learningtool
.
setRightsSettingItemList
(
...
@@ -915,6 +913,8 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
...
@@ -915,6 +913,8 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
nowItems
.
stream
().
filter
(
s
->
RightsNowItemType
.
DRAW
.
value
.
equals
(
s
.
getType
())).
collect
(
Collectors
.
toList
()));
nowItems
.
stream
().
filter
(
s
->
RightsNowItemType
.
DRAW
.
value
.
equals
(
s
.
getType
())).
collect
(
Collectors
.
toList
()));
rightsSettingTitler4Group
.
setRightsSettingItemList
(
rightsSettingTitler4Group
.
setRightsSettingItemList
(
nowItems
.
stream
().
filter
(
s
->
RightsNowItemType
.
GROUP_SERVICE
.
value
.
equals
(
s
.
getType
())
&&
s
.
getServeType
()
!=
null
).
collect
(
Collectors
.
toList
()));
nowItems
.
stream
().
filter
(
s
->
RightsNowItemType
.
GROUP_SERVICE
.
value
.
equals
(
s
.
getType
())
&&
s
.
getServeType
()
!=
null
).
collect
(
Collectors
.
toList
()));
// 填充应用、作品、社群、资讯
fillProductAndApp
(
nowItems
);
}
}
rightsSetting
.
setOnlineRightsSettingTitle
(
rightsSettingTitler4Online
);
rightsSetting
.
setOnlineRightsSettingTitle
(
rightsSettingTitler4Online
);
rightsSetting
.
setLearningToolTitle
(
rightsSettingTitler4Learningtool
);
rightsSetting
.
setLearningToolTitle
(
rightsSettingTitler4Learningtool
);
...
@@ -1035,6 +1035,8 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
...
@@ -1035,6 +1035,8 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
if
(
appletNewsDTO
!=
null
){
if
(
appletNewsDTO
!=
null
){
item
.
setNewsName
(
appletNewsDTO
.
getNewsName
());
item
.
setNewsName
(
appletNewsDTO
.
getNewsName
());
item
.
setNewsSource
(
appletNewsDTO
.
getSource
());
item
.
setNewsSource
(
appletNewsDTO
.
getSource
());
item
.
setSource
(
appletNewsDTO
.
getSource
());
// item的type字段跟appletNewsDTO的type字段有些冲突,前端会根据type来展示不同的样式
item
.
setType
(
appletNewsDTO
.
getType
());
item
.
setType
(
appletNewsDTO
.
getType
());
item
.
setServeId
(
appletNewsDTO
.
getId
());
item
.
setServeId
(
appletNewsDTO
.
getId
());
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/entity/RightsNowItem.java
View file @
eda1133d
...
@@ -79,7 +79,9 @@ public class RightsNowItem extends BaseEntity {
...
@@ -79,7 +79,9 @@ public class RightsNowItem extends BaseEntity {
private
GroupActivity4AppletDTO
groupActivity4AppletDTO
;
private
GroupActivity4AppletDTO
groupActivity4AppletDTO
;
@ApiModelProperty
(
"资讯名称"
)
@ApiModelProperty
(
"资讯名称"
)
private
String
newsName
;
private
String
newsName
;
@ApiModelProperty
(
"
资讯图
"
)
@ApiModelProperty
(
"
来源
"
)
private
String
newsSource
;
private
String
newsSource
;
@ApiModelProperty
(
"来源"
)
private
String
source
;
}
}
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