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
d631d13e
Commit
d631d13e
authored
Jan 06, 2021
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/1004152' into 'master'
feat:[1004152] 自有码进h5引导关注公众号 See merge request rays/pcloud-book!1136
parents
55d46ff5
09adb3e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
BookGroupBizImpl.java
...java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
+15
-2
BookGroupSceneDTO.java
...ain/java/com/pcloud/book/group/dto/BookGroupSceneDTO.java
+3
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
View file @
d631d13e
...
@@ -3059,7 +3059,8 @@ public class BookGroupBizImpl implements BookGroupBiz {
...
@@ -3059,7 +3059,8 @@ public class BookGroupBizImpl implements BookGroupBiz {
bookGroupServe
.
setServeName
(
productDto
.
getProductName
());
bookGroupServe
.
setServeName
(
productDto
.
getProductName
());
bookGroupServe
.
setPicUrl
(
productDto
.
getCoverImg
());
bookGroupServe
.
setPicUrl
(
productDto
.
getCoverImg
());
if
(
productDto
.
getProductTypeDto
()
!=
null
)
{
if
(
productDto
.
getProductTypeDto
()
!=
null
)
{
bookGroupServe
.
setFromType
(
productDto
.
getProductTypeDto
().
getTypeCode
());
bookGroupServe
.
setTypeCode
(
productDto
.
getProductTypeDto
().
getTypeCode
());
bookGroupServe
.
setFromType
(
productDto
.
getProductTypeDto
().
getTypeName
());
}
}
bookGroupServe
.
setIsSuper
(
isSuperMap
.
get
(
bookGroupServe
.
getServeId
()));
bookGroupServe
.
setIsSuper
(
isSuperMap
.
get
(
bookGroupServe
.
getServeId
()));
}
}
...
@@ -3068,8 +3069,9 @@ public class BookGroupBizImpl implements BookGroupBiz {
...
@@ -3068,8 +3069,9 @@ public class BookGroupBizImpl implements BookGroupBiz {
AppDto
appDto
=
appDtoMap
.
get
(
bookGroupServe
.
getServeId
());
AppDto
appDto
=
appDtoMap
.
get
(
bookGroupServe
.
getServeId
());
if
(
appDto
!=
null
)
{
if
(
appDto
!=
null
)
{
bookGroupServe
.
setServeName
(
appDto
.
getTitle
());
bookGroupServe
.
setServeName
(
appDto
.
getTitle
());
bookGroupServe
.
set
FromTyp
e
(
appDto
.
getTypeCode
());
bookGroupServe
.
set
TypeCod
e
(
appDto
.
getTypeCode
());
bookGroupServe
.
setPicUrl
(
appDto
.
getSquareImg
());
bookGroupServe
.
setPicUrl
(
appDto
.
getSquareImg
());
bookGroupServe
.
setFromType
(
appDto
.
getTypeName
());
}
}
}
}
}
}
...
@@ -6185,6 +6187,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
...
@@ -6185,6 +6187,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
bookGroupSceneDTO
.
setSceneId
(
bookGroupDTO
.
getSceneId
());
bookGroupSceneDTO
.
setSceneId
(
bookGroupDTO
.
getSceneId
());
QrcodeSceneDto
qrcodeSceneDto
=
qrcodeSceneConsr
.
getById
(
bookGroupDTO
.
getSceneId
());
QrcodeSceneDto
qrcodeSceneDto
=
qrcodeSceneConsr
.
getById
(
bookGroupDTO
.
getSceneId
());
bookGroupSceneDTO
.
setQrcodeUrl
(
null
==
qrcodeSceneDto
?
null
:
qrcodeSceneDto
.
getQrcodeUrl
());
bookGroupSceneDTO
.
setQrcodeUrl
(
null
==
qrcodeSceneDto
?
null
:
qrcodeSceneDto
.
getQrcodeUrl
());
//原流程保留
List
<
BookServeDTO
>
bookServeDTOS
=
getBookAndBookGroupServeIds
(
bookGroupDTO
.
getCreateUser
(),
bookGroupDTO
.
getBookId
(),
bookGroupDTO
.
getChannelId
());
List
<
BookServeDTO
>
bookServeDTOS
=
getBookAndBookGroupServeIds
(
bookGroupDTO
.
getCreateUser
(),
bookGroupDTO
.
getBookId
(),
bookGroupDTO
.
getChannelId
());
if
(
CollUtil
.
isEmpty
(
bookServeDTOS
))
{
if
(
CollUtil
.
isEmpty
(
bookServeDTOS
))
{
return
bookGroupSceneDTO
;
return
bookGroupSceneDTO
;
...
@@ -6209,6 +6212,16 @@ public class BookGroupBizImpl implements BookGroupBiz {
...
@@ -6209,6 +6212,16 @@ public class BookGroupBizImpl implements BookGroupBiz {
// 要求少于4个的时候要随机补成4个
// 要求少于4个的时候要随机补成4个
fillMpServices
(
mpServices
,
0
,
6
);
fillMpServices
(
mpServices
,
0
,
6
);
bookGroupSceneDTO
.
setMpServices
(
mpServices
);
bookGroupSceneDTO
.
setMpServices
(
mpServices
);
//新流程改编为返回书所配置的资源
List
<
BookGroupServe
>
serveList
=
bookGroupServeDao
.
getListByBookGroupId
(
bookGroupId
);
if
(
ListUtils
.
isEmpty
(
serveList
))
{
return
bookGroupSceneDTO
;
}
fillServeInfo
(
serveList
);
for
(
BookGroupServe
bookGroupServe
:
serveList
)
{
}
bookGroupSceneDTO
.
setBookServices
(
serveList
);
return
bookGroupSceneDTO
;
return
bookGroupSceneDTO
;
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/dto/BookGroupSceneDTO.java
View file @
d631d13e
package
com
.
pcloud
.
book
.
group
.
dto
;
package
com
.
pcloud
.
book
.
group
.
dto
;
import
com.pcloud.book.group.entity.BookGroupServe
;
import
com.pcloud.common.dto.BaseDto
;
import
com.pcloud.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -35,4 +36,6 @@ public class BookGroupSceneDTO extends BaseDto {
...
@@ -35,4 +36,6 @@ public class BookGroupSceneDTO extends BaseDto {
private
String
bookName
;
private
String
bookName
;
@ApiModelProperty
(
"公众号服务分类列表"
)
@ApiModelProperty
(
"公众号服务分类列表"
)
private
List
<
Integer
>
mpServices
;
private
List
<
Integer
>
mpServices
;
@ApiModelProperty
(
"公众号配置的资源"
)
private
List
<
BookGroupServe
>
bookServices
;
}
}
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