Commit ca9340be by 周晓航

新增原始商品类型

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 4efc7c4e
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<dependency> <dependency>
<groupId>com.freemud.application.service.sdk</groupId> <groupId>com.freemud.application.service.sdk</groupId>
<artifactId>productcenter-sdk</artifactId> <artifactId>productcenter-sdk</artifactId>
<version>4.0.3.RELEASE</version> <version>4.0.4.RELEASE</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
......
...@@ -530,6 +530,8 @@ public class ShoppingCartAdapter { ...@@ -530,6 +530,8 @@ public class ShoppingCartAdapter {
comboxGoods.setName(isComboxGoods ? productComboType.getProductName() : groupDetailType.getProductName()); comboxGoods.setName(isComboxGoods ? productComboType.getProductName() : groupDetailType.getProductName());
comboxGoods.setForeignName(isComboxGoods ? productComboType.getForeignProductName() : groupDetailType.getForeignProductName()); comboxGoods.setForeignName(isComboxGoods ? productComboType.getForeignProductName() : groupDetailType.getForeignProductName());
comboxGoods.setSpuName(comboxGoods.getName()); comboxGoods.setSpuName(comboxGoods.getName());
// 组合商品类型存放
comboxGoods.setOriginalProductType(isComboxGoods ? productComboType.getProductType() : groupDetailType.getProductType());
comboxGoods.setSpuForeignName(comboxGoods.getForeignName()); comboxGoods.setSpuForeignName(comboxGoods.getForeignName());
comboxGoods.setSpecProductId(attributes.get(ATTRIBUTEID)); comboxGoods.setSpecProductId(attributes.get(ATTRIBUTEID));
comboxGoods.setSubName(attributes.get(ATTRIBUTENAME)); comboxGoods.setSubName(attributes.get(ATTRIBUTENAME));
......
...@@ -381,6 +381,12 @@ public class CartGoods { ...@@ -381,6 +381,12 @@ public class CartGoods {
private String skuId; private String skuId;
private String skuName; private String skuName;
private String skuForeignName; private String skuForeignName;
/**
* 新增存放 商品类型
*/
private Integer originalProductType;
/** /**
* 所有属性attributeId的拼接 * 所有属性attributeId的拼接
*/ */
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<dependency> <dependency>
<groupId>com.freemud.application.service.sdk</groupId> <groupId>com.freemud.application.service.sdk</groupId>
<artifactId>productcenter-sdk</artifactId> <artifactId>productcenter-sdk</artifactId>
<version>4.0.3.RELEASE</version> <version>4.0.4.RELEASE</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.freemud.application.service.sdk</groupId> <groupId>com.freemud.application.service.sdk</groupId>
......
...@@ -361,6 +361,14 @@ public class CartGoods { ...@@ -361,6 +361,14 @@ public class CartGoods {
private String skuName; private String skuName;
private String skuForeignName; private String skuForeignName;
/** /**
* 原有商品类型
*
* 溯源: 订单有自己的商品逻辑 无法使用原有字段类型记录处理
* 该字段,保持和商品服务的商品类型一致
*/
private Integer originalProductType;
/**
* 所有属性attributeId的拼接 * 所有属性attributeId的拼接
*/ */
private String specProductId; private String specProductId;
......
...@@ -2049,6 +2049,8 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -2049,6 +2049,8 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
cartGoods.setPic(productBeanListSpuClass.get(0).getPicture()); cartGoods.setPic(productBeanListSpuClass.get(0).getPicture());
cartGoods.setWeight(productBeanListSpuClass.get(0).getWeight()); cartGoods.setWeight(productBeanListSpuClass.get(0).getWeight());
cartGoods.setUnit(productBeanListSpuClass.get(0).getUnit()); cartGoods.setUnit(productBeanListSpuClass.get(0).getUnit());
// 券商品 设置商品原始类型
cartGoods.setOriginalProductType(productBeanListSpuClass.get(0).getType());
boolean stockLimit = false; boolean stockLimit = false;
if (productBeanListSpuClass.get(0).getType() == ProductType.NOSPEC.getCode() if (productBeanListSpuClass.get(0).getType() == ProductType.NOSPEC.getCode()
&& productBeanListSpuClass.get(0).getStockLimit() == 1) { && productBeanListSpuClass.get(0).getStockLimit() == 1) {
......
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