Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
c272babb
Commit
c272babb
authored
Apr 03, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 落地页处理
parent
5e13c07c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
ClerkMaterialShareController.java
.../web/controller/content/ClerkMaterialShareController.java
+12
-0
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/ClerkMaterialShareController.java
View file @
c272babb
...
@@ -13,8 +13,10 @@ import com.gic.haoban.manage.api.enums.content.ShareBizType;
...
@@ -13,8 +13,10 @@ import com.gic.haoban.manage.api.enums.content.ShareBizType;
import
com.gic.haoban.manage.api.service.content.MaterialShareLogApiService
;
import
com.gic.haoban.manage.api.service.content.MaterialShareLogApiService
;
import
com.gic.haoban.manage.web.qo.content.ContentMaterialBaseQO
;
import
com.gic.haoban.manage.web.qo.content.ContentMaterialBaseQO
;
import
com.gic.haoban.manage.web.qo.content.log.MaterialShareLogQO
;
import
com.gic.haoban.manage.web.qo.content.log.MaterialShareLogQO
;
import
com.gic.haoban.manage.web.vo.content.ContentMaterialInfoVO
;
import
com.gic.haoban.manage.web.vo.content.SimpleGoodsInfoVO
;
import
com.gic.haoban.manage.web.vo.content.SimpleGoodsInfoVO
;
import
com.gic.haoban.manage.web.vo.content.share.ContentMaterialLandingPageVO
;
import
com.gic.haoban.manage.web.vo.content.share.ContentMaterialLandingPageVO
;
import
com.google.common.base.Splitter
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
...
@@ -88,6 +90,16 @@ public class ClerkMaterialShareController {
...
@@ -88,6 +90,16 @@ public class ClerkMaterialShareController {
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
}
ContentMaterialLandingPageVO
materialLandingPageVO
=
EntityUtil
.
changeEntityByJSON
(
ContentMaterialLandingPageVO
.
class
,
serviceResponse
.
getResult
());
ContentMaterialLandingPageVO
materialLandingPageVO
=
EntityUtil
.
changeEntityByJSON
(
ContentMaterialLandingPageVO
.
class
,
serviceResponse
.
getResult
());
if
(
serviceResponse
.
getResult
()
!=
null
&&
serviceResponse
.
getResult
().
getContentMaterialInfo
()
!=
null
)
{
ContentMaterialInfoVO
contentMaterialInfo
=
materialLandingPageVO
.
getContentMaterialInfo
();
if
(
StringUtils
.
isNotBlank
(
serviceResponse
.
getResult
().
getContentMaterialInfo
().
getMaterialImageUrls
()))
{
contentMaterialInfo
.
setMaterialImageUrls
(
Splitter
.
on
(
","
).
splitToList
(
serviceResponse
.
getResult
().
getContentMaterialInfo
().
getMaterialImageUrls
()));
}
if
(
StringUtils
.
isNotBlank
(
serviceResponse
.
getResult
().
getContentMaterialInfo
().
getMaterialThumbnailImageUrls
()))
{
contentMaterialInfo
.
setMaterialThumbnailImageUrls
(
Splitter
.
on
(
","
).
splitToList
(
serviceResponse
.
getResult
().
getContentMaterialInfo
().
getMaterialImageUrls
()));
}
}
List
<
ContentGoodsDTO
>
goodsInfos
=
serviceResponse
.
getResult
().
getGoodsInfos
();
List
<
ContentGoodsDTO
>
goodsInfos
=
serviceResponse
.
getResult
().
getGoodsInfos
();
if
(
CollectionUtils
.
isNotEmpty
(
goodsInfos
))
{
if
(
CollectionUtils
.
isNotEmpty
(
goodsInfos
))
{
List
<
SimpleGoodsInfoVO
>
goodsInfoVOS
=
goodsInfos
.
stream
()
List
<
SimpleGoodsInfoVO
>
goodsInfoVOS
=
goodsInfos
.
stream
()
...
...
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