Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lingxi-lxy-yanshou
Project
Project
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
后端-黄柯铭
lingxi-lxy-yanshou
Commits
76b9a620
Commit
76b9a620
authored
Aug 06, 2021
by
xyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问题修改
parent
44dad9d7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
CommonCommodityPlatformResponse.java
...l/response/commodity/CommonCommodityPlatformResponse.java
+12
-0
CommodityServiceImpl.java
.../ssy/lingxi/product/serviceImpl/CommodityServiceImpl.java
+2
-0
No files found.
product-service/product-service-api/src/main/java/com/ssy/lingxi/product/api/model/response/commodity/CommonCommodityPlatformResponse.java
View file @
76b9a620
...
@@ -2,6 +2,8 @@ package com.ssy.lingxi.product.api.model.response.commodity;
...
@@ -2,6 +2,8 @@ package com.ssy.lingxi.product.api.model.response.commodity;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Map
;
/**
/**
* 商品货品响应类
* 商品货品响应类
* @author jw.chen
* @author jw.chen
...
@@ -46,6 +48,16 @@ public class CommonCommodityPlatformResponse {
...
@@ -46,6 +48,16 @@ public class CommonCommodityPlatformResponse {
private
String
categoryName
;
private
String
categoryName
;
/**
/**
* 计量单位
*/
private
String
unitName
;
/**
* 商品单价
*/
private
Map
<
String
,
Double
>
unitPrice
;
/**
* 品牌
* 品牌
*/
*/
private
String
brandName
;
private
String
brandName
;
...
...
product-service/src/main/java/com/ssy/lingxi/product/serviceImpl/CommodityServiceImpl.java
View file @
76b9a620
...
@@ -2178,6 +2178,8 @@ public class CommodityServiceImpl implements ICommodityService {
...
@@ -2178,6 +2178,8 @@ public class CommodityServiceImpl implements ICommodityService {
commodityGoodsResponse
.
setMemberRoleId
(
commodity
.
getMemberRoleId
());
commodityGoodsResponse
.
setMemberRoleId
(
commodity
.
getMemberRoleId
());
commodityGoodsResponse
.
setMemberRoleName
(
commodity
.
getMemberRoleName
());
commodityGoodsResponse
.
setMemberRoleName
(
commodity
.
getMemberRoleName
());
commodityGoodsResponse
.
setMainPic
(
commodity
.
getMainPic
());
commodityGoodsResponse
.
setMainPic
(
commodity
.
getMainPic
());
commodityGoodsResponse
.
setUnitName
(
commodity
.
getUnitName
());
commodityGoodsResponse
.
setUnitPrice
(
commodityUnitPriceAndPic
.
getUnitPrice
());
Category
category
=
commodity
.
getCustomerCategory
().
getCategory
();
Category
category
=
commodity
.
getCustomerCategory
().
getCategory
();
if
(
category
!=
null
){
if
(
category
!=
null
){
commodityGoodsResponse
.
setCategoryName
(
category
.
getName
());
commodityGoodsResponse
.
setCategoryName
(
category
.
getName
());
...
...
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