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
a9fb0059
Commit
a9fb0059
authored
Nov 21, 2022
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 字段统一
parent
93b7da6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
9 deletions
+47
-9
ContentMaterialController.java
...age/web/controller/content/ContentMaterialController.java
+12
-0
SimpleGoodsInfoVO.java
...m/gic/haoban/manage/web/vo/content/SimpleGoodsInfoVO.java
+35
-9
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/ContentMaterialController.java
View file @
a9fb0059
...
...
@@ -19,6 +19,7 @@ import com.gic.haoban.manage.web.qo.content.ContentMaterialShareQO;
import
com.gic.haoban.manage.web.vo.content.ContentColumnInfoVO
;
import
com.gic.haoban.manage.web.vo.content.ContentMaterialInfoVO
;
import
com.gic.haoban.manage.web.vo.content.ContentMaterialShareInfoVO
;
import
com.gic.haoban.manage.web.vo.content.SimpleGoodsInfoVO
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
...
...
@@ -112,6 +113,17 @@ public class ContentMaterialController {
.
map
(
item
->
{
ContentMaterialInfoVO
contentMaterialInfoVO
=
new
ContentMaterialInfoVO
();
BeanUtils
.
copyProperties
(
item
,
contentMaterialInfoVO
);
if
(
CollectionUtils
.
isNotEmpty
(
item
.
getContentGoodsList
())){
List
<
SimpleGoodsInfoVO
>
goodsInfoVOS
=
item
.
getContentGoodsList
()
.
stream
()
.
map
(
temp
->
{
SimpleGoodsInfoVO
simpleGoodsInfoVO
=
new
SimpleGoodsInfoVO
();
BeanUtils
.
copyProperties
(
temp
,
simpleGoodsInfoVO
);
simpleGoodsInfoVO
.
setGoodsImg
(
temp
.
getGoodsImageUrl
());
return
simpleGoodsInfoVO
;
}).
collect
(
Collectors
.
toList
());
contentMaterialInfoVO
.
setContentGoodsList
(
goodsInfoVOS
);
}
contentMaterialInfoVO
.
setPublishTime
(
item
.
getPublishBeginTime
());
if
(
StringUtils
.
isNotBlank
(
item
.
getMaterialImageUrls
()))
{
String
[]
split
=
StringUtils
.
split
(
item
.
getMaterialImageUrls
(),
","
);
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/vo/content/SimpleGoodsInfoVO.java
View file @
a9fb0059
...
...
@@ -18,7 +18,7 @@ public class SimpleGoodsInfoVO implements Serializable {
/**
* 商品图片
*/
private
String
goodsIm
ageUrl
;
private
String
goodsIm
g
;
/**
* 商品货号
...
...
@@ -34,6 +34,16 @@ public class SimpleGoodsInfoVO implements Serializable {
*/
private
Integer
spuStock
;
/**
* 商品分类
*/
private
String
goodsCategory
;
/**
* 品牌名称
*/
private
String
brandName
;
public
String
getGoodsId
()
{
return
goodsId
;
}
...
...
@@ -42,14 +52,6 @@ public class SimpleGoodsInfoVO implements Serializable {
this
.
goodsId
=
goodsId
;
}
public
String
getGoodsImageUrl
()
{
return
goodsImageUrl
;
}
public
void
setGoodsImageUrl
(
String
goodsImageUrl
)
{
this
.
goodsImageUrl
=
goodsImageUrl
;
}
public
String
getGoodsCode
()
{
return
goodsCode
;
}
...
...
@@ -73,4 +75,28 @@ public class SimpleGoodsInfoVO implements Serializable {
public
void
setSpuStock
(
Integer
spuStock
)
{
this
.
spuStock
=
spuStock
;
}
public
String
getGoodsImg
()
{
return
goodsImg
;
}
public
void
setGoodsImg
(
String
goodsImg
)
{
this
.
goodsImg
=
goodsImg
;
}
public
String
getGoodsCategory
()
{
return
goodsCategory
;
}
public
void
setGoodsCategory
(
String
goodsCategory
)
{
this
.
goodsCategory
=
goodsCategory
;
}
public
String
getBrandName
()
{
return
brandName
;
}
public
void
setBrandName
(
String
brandName
)
{
this
.
brandName
=
brandName
;
}
}
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