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
jenkins
order-group
Commits
8aca96cf
Commit
8aca96cf
authored
Apr 07, 2020
by
shuhu.hou@freemud.cn
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/20200324_套餐商品组校验'
# Conflicts: # .gitignore
parents
aab7a0f8
7e724c4b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
4 deletions
+20
-4
.gitignore
+1
-1
assortment-shoppingcart-sdk/pom.xml
+1
-1
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/adapter/ShoppingCartAdapter.java
+4
-1
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/domain/CartGoods.java
+4
-0
shopping-cart-application-service/pom.xml
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/adapter/ShoppingCartConvertAdapter.java
+1
-0
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/CartGoods.java
+4
-0
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/ComboxGoodsRequestVo.java
+4
-0
No files found.
.gitignore
View file @
8aca96cf
...
@@ -18,5 +18,5 @@ push-order-service/push-order-service.iml
...
@@ -18,5 +18,5 @@ push-order-service/push-order-service.iml
push-order-service/target/
push-order-service/target/
shopping-cart-application-service/shopping-cart-application-service.iml
shopping-cart-application-service/shopping-cart-application-service.iml
shopping-cart-application-service/target/
shopping-cart-application-service/target/
order-management/order-
application-service
.iml
order-management/order-
management
.iml
order-management/target/
order-management/target/
assortment-shoppingcart-sdk/pom.xml
View file @
8aca96cf
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,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>
2.
7.7.RELEASE
</version>
<version>
2.
8.0-SNAPSHOT
</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 @
8aca96cf
...
@@ -59,7 +59,9 @@ public class ShoppingCartAdapter {
...
@@ -59,7 +59,9 @@ public class ShoppingCartAdapter {
ValidateShopProductType
productType
=
new
ValidateShopProductType
();
ValidateShopProductType
productType
=
new
ValidateShopProductType
();
productType
.
setSpuId
(
cartGoods
.
getSpuId
());
productType
.
setSpuId
(
cartGoods
.
getSpuId
());
productType
.
setSkuId
(
ObjectUtils
.
equals
(
GoodsTypeEnum
.
SKU_GOODS
.
getGoodsType
(),
cartGoods
.
getGoodsType
())
?
cartGoods
.
getSkuId
()
:
cartGoods
.
getSpuId
());
productType
.
setSkuId
(
ObjectUtils
.
equals
(
GoodsTypeEnum
.
SKU_GOODS
.
getGoodsType
(),
cartGoods
.
getGoodsType
())
?
cartGoods
.
getSkuId
()
:
cartGoods
.
getSpuId
());
productType
.
setPrice
(
cartGoods
.
getOriginalPrice
()
==
null
?
0
:
cartGoods
.
getOriginalPrice
().
intValue
());
// 应产品要求
// 普通商品,取商品的finalePrice(普通商品售价);套餐商品,取originalPrice(套餐价格)
productType
.
setPrice
(
cartGoods
.
getFinalPrice
()
==
null
?
0
:
cartGoods
.
getFinalPrice
().
intValue
());
productType
.
setValidatePrice
(
productType
.
getPrice
()
==
0
?
0
:
1
);
productType
.
setValidatePrice
(
productType
.
getPrice
()
==
0
?
0
:
1
);
productType
.
setValidateAttribute
(
1
);
productType
.
setValidateAttribute
(
1
);
productType
.
setValidateStatuses
(
Arrays
.
asList
(
2
));
productType
.
setValidateStatuses
(
Arrays
.
asList
(
2
));
...
@@ -97,6 +99,7 @@ public class ShoppingCartAdapter {
...
@@ -97,6 +99,7 @@ public class ShoppingCartAdapter {
validateSkuProductType
.
setMarkUpPrice
(
comboxGoods
.
getFinalPrice
()
==
null
?
0
:
comboxGoods
.
getFinalPrice
().
intValue
());
validateSkuProductType
.
setMarkUpPrice
(
comboxGoods
.
getFinalPrice
()
==
null
?
0
:
comboxGoods
.
getFinalPrice
().
intValue
());
validateSkuProductType
.
setQty
(
comboxGoods
.
getQty
());
validateSkuProductType
.
setQty
(
comboxGoods
.
getQty
());
validateSkuProductType
.
setAttributeList
(
getAttributes
(
comboxGoods
.
getExtra
()));
validateSkuProductType
.
setAttributeList
(
getAttributes
(
comboxGoods
.
getExtra
()));
validateSkuProductType
.
setProductGroupId
(
comboxGoods
.
getProductGroupId
());
result
.
add
(
validateSkuProductType
);
result
.
add
(
validateSkuProductType
);
}
}
}
}
...
...
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/domain/CartGoods.java
View file @
8aca96cf
...
@@ -234,6 +234,10 @@ public class CartGoods {
...
@@ -234,6 +234,10 @@ public class CartGoods {
*/
*/
private
String
unit
;
private
String
unit
;
/**
/**
* 商品组Id
*/
private
Long
productGroupId
;
/**
* 配料或属性
* 配料或属性
*/
*/
private
List
<
CartGoodsExtra
>
extra
;
private
List
<
CartGoodsExtra
>
extra
;
...
...
shopping-cart-application-service/pom.xml
View file @
8aca96cf
...
@@ -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>
2.
7.7.RELEASE
</version>
<version>
2.
8.0-SNAPSHOT
</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/adapter/ShoppingCartConvertAdapter.java
View file @
8aca96cf
...
@@ -363,6 +363,7 @@ public class ShoppingCartConvertAdapter {
...
@@ -363,6 +363,7 @@ public class ShoppingCartConvertAdapter {
productCombox
.
setSkuId
(
vo
.
getSkuId
());
productCombox
.
setSkuId
(
vo
.
getSkuId
());
productCombox
.
setQty
(
vo
.
getQty
());
productCombox
.
setQty
(
vo
.
getQty
());
productCombox
.
setExtra
(
vo
.
getExtra
());
productCombox
.
setExtra
(
vo
.
getExtra
());
productCombox
.
setProductGroupId
(
StringUtils
.
isEmpty
(
vo
.
getProductGroupId
())?
null
:
Long
.
parseLong
(
vo
.
getProductGroupId
()));
productGroupList
.
add
(
productCombox
);
productGroupList
.
add
(
productCombox
);
}
}
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/CartGoods.java
View file @
8aca96cf
...
@@ -242,6 +242,10 @@ public class CartGoods {
...
@@ -242,6 +242,10 @@ public class CartGoods {
* 第三方商品编号
* 第三方商品编号
*/
*/
private
String
customerCode
;
private
String
customerCode
;
/**
* 商品组Id
*/
private
Long
productGroupId
;
@Override
@Override
public
int
hashCode
()
{
public
int
hashCode
()
{
...
...
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/ComboxGoodsRequestVo.java
View file @
8aca96cf
...
@@ -22,6 +22,10 @@ public class ComboxGoodsRequestVo {
...
@@ -22,6 +22,10 @@ public class ComboxGoodsRequestVo {
private
String
skuId
;
private
String
skuId
;
private
Integer
qty
;
private
Integer
qty
;
/**
/**
* 商品组Id
*/
private
String
productGroupId
;
/**
* 商品额外的属性
* 商品额外的属性
*/
*/
List
<
CartGoods
.
CartGoodsExtra
>
extra
;
List
<
CartGoods
.
CartGoodsExtra
>
extra
;
...
...
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