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
4013946a
Commit
4013946a
authored
Sep 15, 2020
by
朱亚洁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug:[1025593]小程序里资源的顺序要和公众号里配置的一致
parent
46fbd119
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
20 deletions
+24
-20
BookGroupBizImpl.java
...java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
+24
-20
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
View file @
4013946a
...
@@ -5056,6 +5056,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
...
@@ -5056,6 +5056,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
}
}
}
}
@Override
public
List
<
BookServeDTO
>
getBookAndBookGroupServeIds
(
Long
adviserId
,
Long
bookId
,
Long
channelId
)
{
public
List
<
BookServeDTO
>
getBookAndBookGroupServeIds
(
Long
adviserId
,
Long
bookId
,
Long
channelId
)
{
List
<
BookServeDTO
>
serveDTOList
=
new
ArrayList
<>();
List
<
BookServeDTO
>
serveDTOList
=
new
ArrayList
<>();
BookGroupDTO
bookGroupDTO
=
bookGroupDao
.
getDTOByBookId
(
bookId
,
channelId
,
adviserId
);
BookGroupDTO
bookGroupDTO
=
bookGroupDao
.
getDTOByBookId
(
bookId
,
channelId
,
adviserId
);
...
@@ -5065,26 +5066,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
...
@@ -5065,26 +5066,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
if
(
null
==
accountSettingDto
){
if
(
null
==
accountSettingDto
){
return
new
ArrayList
<>();
return
new
ArrayList
<>();
}
}
if
(
null
!=
bookGroupDTO
)
{
//有社群书
//先排纸书二维码资源,后排社群书资源,张文庆
//社群书配置资源
List
<
BookGroupServe
>
bookGroupServes
=
bookGroupServeDao
.
getListByBookGroupId
(
bookGroupDTO
.
getId
());
if
(!
ListUtils
.
isEmpty
(
bookGroupServes
))
{
for
(
BookGroupServe
bookGroupServe
:
bookGroupServes
)
{
BookServeDTO
bookServeDTO
=
new
BookServeDTO
();
BeanUtils
.
copyProperties
(
bookGroupServe
,
bookServeDTO
);
String
url
=
SendWeixinRequestTools
.
splitUrl
(
accountSettingDto
,
bookGroupServe
.
getServeUrl
());
bookServeDTO
.
setUrl
(
url
);
bookServeDTO
.
setTypeCode
(
bookServeDTO
.
getServeType
());
bookServeDTO
.
setFromType
(
bookGroupServe
.
getTypeCode
());
serveDTOList
.
add
(
bookServeDTO
);
if
(
AppAndProductTypeEnum
.
APP
.
value
.
equals
(
bookServeDTO
.
getServeType
()))
{
appIds
.
add
(
bookGroupServe
.
getServeId
());
}
else
{
productIds
.
add
(
bookGroupServe
.
getServeId
());
}
}
}
}
//现代纸书二维码配置资源
//现代纸书二维码配置资源
BookServeParamVO
serveParamVO
=
new
BookServeParamVO
();
BookServeParamVO
serveParamVO
=
new
BookServeParamVO
();
serveParamVO
.
setAdviserId
(
adviserId
);
serveParamVO
.
setAdviserId
(
adviserId
);
...
@@ -5113,6 +5095,28 @@ public class BookGroupBizImpl implements BookGroupBiz {
...
@@ -5113,6 +5095,28 @@ public class BookGroupBizImpl implements BookGroupBiz {
}
}
}
}
}
}
if
(
null
!=
bookGroupDTO
)
{
//有社群书
//社群书配置资源
List
<
BookGroupServe
>
bookGroupServes
=
bookGroupServeDao
.
getListByBookGroupId
(
bookGroupDTO
.
getId
());
if
(!
ListUtils
.
isEmpty
(
bookGroupServes
))
{
for
(
BookGroupServe
bookGroupServe
:
bookGroupServes
)
{
BookServeDTO
bookServeDTO
=
new
BookServeDTO
();
BeanUtils
.
copyProperties
(
bookGroupServe
,
bookServeDTO
);
String
url
=
SendWeixinRequestTools
.
splitUrl
(
accountSettingDto
,
bookGroupServe
.
getServeUrl
());
bookServeDTO
.
setUrl
(
url
);
bookServeDTO
.
setTypeCode
(
bookServeDTO
.
getServeType
());
bookServeDTO
.
setFromType
(
bookGroupServe
.
getTypeCode
());
Long
serveId
=
bookGroupServe
.
getServeId
();
if
(
AppAndProductTypeEnum
.
APP
.
value
.
equals
(
bookServeDTO
.
getServeType
())
&&
!
appIds
.
contains
(
serveId
))
{
serveDTOList
.
add
(
bookServeDTO
);
appIds
.
add
(
serveId
);
}
else
if
(
AppAndProductTypeEnum
.
PRODUCT
.
value
.
equals
(
bookServeDTO
.
getServeType
())
&&
!
productIds
.
contains
(
serveId
)){
serveDTOList
.
add
(
bookServeDTO
);
productIds
.
add
(
serveId
);
}
}
}
}
return
serveDTOList
;
return
serveDTOList
;
}
}
...
...
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