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
b9015bdb
Commit
b9015bdb
authored
Jun 08, 2022
by
朱亚洁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:[1007350]bug1034130
parent
602d8ff3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
ResourcePageBizImpl.java
...a/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
+8
-4
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
View file @
b9015bdb
...
@@ -403,6 +403,10 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -403,6 +403,10 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
private
Long
updatePageBySceneId
(
UpdateResourcePageVO
updateResourcePageVO
){
private
Long
updatePageBySceneId
(
UpdateResourcePageVO
updateResourcePageVO
){
Long
sceneId
=
updateResourcePageVO
.
getSceneId
();
Long
sceneId
=
updateResourcePageVO
.
getSceneId
();
ResourcePage
resourcePage
=
resourcePageDao
.
getBySceneId
(
sceneId
);
ResourcePage
resourcePage
=
resourcePageDao
.
getBySceneId
(
sceneId
);
//互助和打卡导航加到图书服务中配置,由前端控制是否配置
if
(
null
!=
updateResourcePageVO
.
getOpenRays
())
{
this
.
updateResourcePageModel
(
resourcePage
.
getId
(),
updateResourcePageVO
.
getResourcePageModelList
(),
resourcePage
.
getCreateUser
());
}
updateResourcePageVO
.
setOpenRays
(
updateResourcePageVO
.
getOpenRays
()
==
null
?
0
:
updateResourcePageVO
.
getOpenRays
());
updateResourcePageVO
.
setOpenRays
(
updateResourcePageVO
.
getOpenRays
()
==
null
?
0
:
updateResourcePageVO
.
getOpenRays
());
QrcodeSceneDto
qrcodeSceneDto
=
qrcodeSceneConsr
.
getById
(
sceneId
);
QrcodeSceneDto
qrcodeSceneDto
=
qrcodeSceneConsr
.
getById
(
sceneId
);
if
(
null
==
resourcePage
)
{
if
(
null
==
resourcePage
)
{
...
@@ -470,8 +474,6 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -470,8 +474,6 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
//删除小程序默认导航
//删除小程序默认导航
this
.
deleteAppletDefaultNavigation
(
resourcePage
.
getId
());
this
.
deleteAppletDefaultNavigation
(
resourcePage
.
getId
());
}
}
//互助和打卡导航加到图书服务中配置,由前端控制是否配置
this
.
updateResourcePageModel
(
resourcePage
.
getId
(),
updateResourcePageVO
.
getResourcePageModelList
(),
resourcePage
.
getCreateUser
());
Long
resourcePageId
=
resourcePage
.
getId
();
Long
resourcePageId
=
resourcePage
.
getId
();
ThreadPoolUtils
.
OTHER_THREAD_POOL
.
execute
(()->
esBookAndAdviserBiz
.
updateBookAndAdviserToES
(
Collections
.
singletonList
(
resourcePageId
)));
ThreadPoolUtils
.
OTHER_THREAD_POOL
.
execute
(()->
esBookAndAdviserBiz
.
updateBookAndAdviserToES
(
Collections
.
singletonList
(
resourcePageId
)));
//更新二维码是否一个资源配置
//更新二维码是否一个资源配置
...
@@ -522,6 +524,10 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -522,6 +524,10 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
private
Long
updatePageByBookGroupId
(
UpdateResourcePageVO
updateResourcePageVO
)
{
private
Long
updatePageByBookGroupId
(
UpdateResourcePageVO
updateResourcePageVO
)
{
Long
bookGroupId
=
updateResourcePageVO
.
getBookGroupId
();
Long
bookGroupId
=
updateResourcePageVO
.
getBookGroupId
();
ResourcePage
resourcePage
=
resourcePageDao
.
getByBookGroupId
(
bookGroupId
);
ResourcePage
resourcePage
=
resourcePageDao
.
getByBookGroupId
(
bookGroupId
);
//互助和打卡导航加到图书服务中配置,由前端控制是否配置
if
(
null
!=
updateResourcePageVO
.
getOpenRays
())
{
this
.
updateResourcePageModel
(
resourcePage
.
getId
(),
updateResourcePageVO
.
getResourcePageModelList
(),
resourcePage
.
getCreateUser
());
}
updateResourcePageVO
.
setOpenRays
(
updateResourcePageVO
.
getOpenRays
()
==
null
?
0
:
updateResourcePageVO
.
getOpenRays
());
updateResourcePageVO
.
setOpenRays
(
updateResourcePageVO
.
getOpenRays
()
==
null
?
0
:
updateResourcePageVO
.
getOpenRays
());
BookGroupDTO
dto
=
bookGroupDao
.
getDTOById
(
bookGroupId
);
BookGroupDTO
dto
=
bookGroupDao
.
getDTOById
(
bookGroupId
);
if
(
null
==
resourcePage
)
{
if
(
null
==
resourcePage
)
{
...
@@ -580,8 +586,6 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -580,8 +586,6 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
//删除小程序默认导航
//删除小程序默认导航
this
.
deleteAppletDefaultNavigation
(
resourcePage
.
getId
());
this
.
deleteAppletDefaultNavigation
(
resourcePage
.
getId
());
}
}
//互助和打卡导航加到图书服务中配置,由前端控制是否配置
this
.
updateResourcePageModel
(
resourcePage
.
getId
(),
updateResourcePageVO
.
getResourcePageModelList
(),
resourcePage
.
getCreateUser
());
Long
resourcePageId
=
resourcePage
.
getId
();
Long
resourcePageId
=
resourcePage
.
getId
();
ThreadPoolUtils
.
OTHER_THREAD_POOL
.
execute
(()->
esBookAndAdviserBiz
.
updateBookAndAdviserToES
(
Collections
.
singletonList
(
resourcePageId
)));
ThreadPoolUtils
.
OTHER_THREAD_POOL
.
execute
(()->
esBookAndAdviserBiz
.
updateBookAndAdviserToES
(
Collections
.
singletonList
(
resourcePageId
)));
//更新二维码是否一个资源配置
//更新二维码是否一个资源配置
...
...
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