Commit 76b9a620 authored by xyt's avatar xyt

问题修改

parent 44dad9d7
...@@ -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;
......
...@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment