Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
ca9340be
Commit
ca9340be
authored
Aug 11, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增原始商品类型
Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent
4efc7c4e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
2 deletions
+20
-2
assortment-shoppingcart-sdk/pom.xml
+1
-1
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/adapter/ShoppingCartAdapter.java
+2
-0
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/domain/CartGoods.java
+6
-0
shopping-cart-application-service/pom.xml
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/CartGoods.java
+8
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
+2
-0
No files found.
assortment-shoppingcart-sdk/pom.xml
View file @
ca9340be
...
@@ -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>
...
...
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/adapter/ShoppingCartAdapter.java
View file @
ca9340be
...
@@ -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
));
...
...
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/domain/CartGoods.java
View file @
ca9340be
...
@@ -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的拼接
*/
*/
...
...
shopping-cart-application-service/pom.xml
View file @
ca9340be
...
@@ -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>
...
...
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/CartGoods.java
View file @
ca9340be
...
@@ -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
;
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
View file @
ca9340be
...
@@ -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
)
{
...
...
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