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
bbd725c5
Commit
bbd725c5
authored
May 21, 2020
by
裴大威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-zyq-fix2' into 'master'
匹配资讯 See merge request rays/pcloud-book!732
parents
ca7c3213
6c8fd87e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+8
-1
RightsSettingItemMapper.xml
...esources/mapper/rightssetting/RightsSettingItemMapper.xml
+4
-3
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
bbd725c5
...
...
@@ -1205,7 +1205,14 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
// 加载平台端自己选择的社群、方案、资讯等数据
fillRightsSettingItemDetail
(
list
);
// 筛选出没有选择 社群、方案、资讯 的数据
List
<
RightsSettingItem
>
needFillAppletNews
=
list
.
stream
().
filter
(
x
->
x
.
getServeType
()
==
null
).
collect
(
Collectors
.
toList
());
List
<
RightsSettingItem
>
needFillAppletNews
=
Lists
.
newArrayList
();
for
(
RightsSettingItem
rightsSettingItem
:
list
){
if
(
rightsSettingItem
.
getServeType
()
==
null
||
RightsServeTypeEnum
.
GROUP
.
name
().
equalsIgnoreCase
(
rightsSettingItem
.
getServeType
())
&&
ListUtils
.
isEmpty
(
rightsSettingItem
.
getGroupActivity4AppletList
())
||
RightsServeTypeEnum
.
NEWS
.
name
().
equalsIgnoreCase
(
rightsSettingItem
.
getServeType
())
&&
ListUtils
.
isEmpty
(
rightsSettingItem
.
getAppletNewsDTOS
()))
{
needFillAppletNews
.
add
(
rightsSettingItem
);
}
}
if
(
ListUtils
.
isEmpty
(
needFillAppletNews
)){
return
list
;
}
...
...
pcloud-service-book/src/main/resources/mapper/rightssetting/RightsSettingItemMapper.xml
View file @
bbd725c5
...
...
@@ -58,9 +58,9 @@
<!--新增所有列-->
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into book.rights_setting_item(rights_setting_id, rights_type, rights_classify_id, description, create_time,title,uuid,open_state,serve_type,
insert into book.rights_setting_item(rights_setting_id, rights_type, rights_classify_id, description, create_time,title,uuid,open_state,serv
ice_desc,serv
e_type,
easy_read,efficient_read,deep_read)
values (#{rightsSettingId}, #{rightsType}, #{rightsClassifyId}, #{description}, NOW(), #{title},#{uuid},#{openState},#{serveType},
values (#{rightsSettingId}, #{rightsType}, #{rightsClassifyId}, #{description}, NOW(), #{title},#{uuid},#{openState},#{serv
iceDesc},#{serv
eType},
#{easyRead},#{efficientRead},#{deepRead})
</insert>
...
...
@@ -76,7 +76,7 @@
<!--批量新增-->
<insert
id=
"batchInsert"
useGeneratedKeys=
"true"
parameterType=
"java.util.List"
>
insert into book.rights_setting_item (
rights_setting_id, rights_type, rights_classify_id, description, create_time,title,uuid,open_state,serve_type,
rights_setting_id, rights_type, rights_classify_id, description, create_time,title,uuid,open_state,serv
ice_desc,serv
e_type,
easy_read,efficient_read,deep_read
)
values
...
...
@@ -90,6 +90,7 @@
#{item.title},
#{item.uuid},
#{item.openState},
#{item.serviceDesc},
#{item.serveType},
#{item.easyRead},#{item.efficientRead},#{item.deepRead}
)
...
...
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