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
b80bd9a4
Commit
b80bd9a4
authored
Oct 26, 2020
by
徐康
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/qa' into qa
parents
7007a876
2f659b46
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
36 additions
and
28 deletions
+36
-28
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/service/order/OrderCenterSdkServiceImpl.java
+2
-2
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/domain/CartGoods.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/adapter/ShoppingCartConvertAdapter.java
+3
-2
shopping-cart-application-service/src/main/java/cn/freemud/entities/dto/shoppingCart/ShoppingCartGoodsDto.java
+3
-1
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/CartGoods.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/MaterialRequestVo.java
+5
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
+18
-18
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
+2
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/calculation/CouponDiscountCalculation.java
+1
-2
No files found.
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/service/order/OrderCenterSdkServiceImpl.java
View file @
b80bd9a4
...
...
@@ -547,7 +547,7 @@ public class OrderCenterSdkServiceImpl implements OrderCenterSdkService {
*/
private
OrderTaskReq
setAfterSalesOrderTimeOutTask
(
StoreResponse
.
Configuration
configuration
)
{
if
(
configuration
!=
null
&&
2
==
configuration
.
getTimeTypeOfRefund
().
intValue
()
){
// 48小时之后
if
(
configuration
!=
null
&&
(
configuration
.
getTimeTypeOfRefund
()
!=
null
&&
2
==
configuration
.
getTimeTypeOfRefund
().
intValue
())
||
configuration
.
getTimeTypeOfRefund
()
==
null
){
// 48小时之后
OrderTaskReq
orderTask
=
new
OrderTaskReq
();
orderTask
.
setTaskType
(
4
);
orderTask
.
setTimeout
(
1
);
...
...
@@ -561,7 +561,7 @@ public class OrderCenterSdkServiceImpl implements OrderCenterSdkService {
orderTask
.
setProcessingTime
(
DateUtil
.
convert2String
(
processingDate
,
DateUtil
.
FORMAT_YYYY_MM_DD_HHMMSS
));
return
orderTask
;
}
else
if
(
configuration
!=
null
&&
1
==
configuration
.
getTimeTypeOfRefund
().
intValue
()){
// 指定时间
}
else
if
(
configuration
!=
null
&&
configuration
.
getTimeTypeOfRefund
()
!=
null
&&
1
==
configuration
.
getTimeTypeOfRefund
().
intValue
()){
// 指定时间
OrderTaskReq
orderTask
=
new
OrderTaskReq
();
orderTask
.
setTaskType
(
4
);
orderTask
.
setTimeout
(
1
);
...
...
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/domain/CartGoods.java
View file @
b80bd9a4
...
...
@@ -383,6 +383,6 @@ public class CartGoods {
/**
* 麦咖啡入机键位
*/
private
String
keyWord
;
private
String
customerCode
;
}
}
shopping-cart-application-service/src/main/java/cn/freemud/adapter/ShoppingCartConvertAdapter.java
View file @
b80bd9a4
...
...
@@ -294,6 +294,8 @@ public class ShoppingCartConvertAdapter {
goods
.
setSalePrice
(
materialGoods
.
getFinalPrice
());
goods
.
setQty
(
cartGoods
.
getQty
());
goods
.
setTotalDiscountAmount
(
0
);
goods
.
setProductCode
(
materialGoods
.
getCustomerCode
());
goods
.
setCustomerCode
(
materialGoods
.
getCustomerCode
());
materialList
.
add
(
goods
);
}
cartGoodsDetailDto
.
setMaterialList
(
materialList
);
...
...
@@ -762,7 +764,7 @@ public class ShoppingCartConvertAdapter {
//原行单价*数量
material
.
setOriginalAmount
(
detail
.
getProductFinalPrice
().
longValue
()
*
cartGoods
.
getQty
());
material
.
setOriginalPrice
(
detail
.
getProductFinalPrice
().
longValue
());
material
.
set
KeyWord
(
materialGoods
.
getKeyWord
());
material
.
set
CustomerCode
(
materialGoods
.
getCustomerCode
());
materialGoodsList
.
add
(
material
);
materialAmount
+=
detail
.
getProductFinalPrice
().
longValue
()
*
cartGoods
.
getQty
();
originalMaterAmount
+=
detail
.
getProductFinalPrice
().
longValue
()
*
cartGoods
.
getQty
();
...
...
@@ -929,7 +931,6 @@ public class ShoppingCartConvertAdapter {
productMaterial
.
setOriginalAmount
(
groupDetailType
.
getProductPrice
().
longValue
());
productMaterial
.
setOriginalPrice
(
groupDetailType
.
getProductPrice
().
longValue
());
productMaterial
.
setSpuName
(
groupDetailType
.
getProductName
());
productMaterial
.
setKeyWord
(
productMaterial
.
getKeyWord
());
}
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/entities/dto/shoppingCart/ShoppingCartGoodsDto.java
View file @
b80bd9a4
...
...
@@ -302,7 +302,9 @@ public class ShoppingCartGoodsDto {
*/
private
Integer
totalDiscountAmount
;
private
String
keyWord
;
private
String
productCode
;
private
String
customerCode
;
/**
* 当前商品享受的促销活动
*/
...
...
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/CartGoods.java
View file @
b80bd9a4
...
...
@@ -500,6 +500,6 @@ public class CartGoods {
/**
* 麦咖啡入机键位
*/
private
String
keyWord
;
private
String
customerCode
;
}
}
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/MaterialRequestVo.java
View file @
b80bd9a4
...
...
@@ -24,4 +24,9 @@ public class MaterialRequestVo {
* 加料商品组ID
*/
private
String
groupId
;
/**
* 麦咖啡入机键位
*/
private
String
customerCode
;
}
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
View file @
b80bd9a4
...
...
@@ -927,27 +927,27 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
if
(
checkSpqInfoResponseDto
==
null
)
{
cartGoodsList
.
remove
(
i
);
assortmentSdkService
.
setShoppingCart
(
partnerId
,
storeId
,
userId
,
cartGoodsList
,
null
,
null
,
this
.
shoppingCartBaseService
);
//if (GoodsTypeEnum.HG_COUPON_GOODS.getGoodsType().equals(cartGoods.getGoodsType())) {
// throw new ServiceException(ResponseResult.SHOPPING_CART_HG_COUPON_NOT_EXIST);
//} else {
// throw new ServiceException(ResponseResult.SHOPPING_CART_COUPON_NOT_EXIST);
//}
}
else
{
validCouponMap
.
put
(
spqId
,
checkSpqInfoResponseDto
);
cartGoods
.
setName
(
checkSpqInfoResponseDto
.
getCouponName
());
cartGoods
.
setSpuName
(
checkSpqInfoResponseDto
.
getCouponName
());
// 添加请求的优惠券信息
ActivityCalculationDiscountRequestDto
.
CalculationDiscountCoupon
coupon
=
new
ActivityCalculationDiscountRequestDto
.
CalculationDiscountCoupon
();
coupon
.
setCode
(
checkSpqInfoResponseDto
.
getCouponCode
());
coupon
.
setActivityCode
(
checkSpqInfoResponseDto
.
getActiveCode
());
coupons
.
add
(
coupon
);
// 添加商品券代表的商品
String
goodsId
=
StringUtils
.
isEmpty
(
checkSpqInfoResponseDto
.
getSkuId
())
?
checkSpqInfoResponseDto
.
getSpuId
()
:
checkSpqInfoResponseDto
.
getSkuId
();
if
(
GoodsTypeEnum
.
HG_COUPON_GOODS
.
getGoodsType
().
equals
(
cartGoods
.
getGoodsType
()))
{
th
row
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_HG_COUPON_NOT_EXIST
);
th
is
.
addCalculationDiscountGoods
(
calculationDiscountGoodsList
,
goodsId
,
1
,
checkSpqInfoResponseDto
.
getPrice
(),
100
,
cartGoodsUid
,
cartGoods
.
getSpuId
()
);
}
else
{
th
row
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_COUPON_NOT_EXIST
);
th
is
.
addCalculationDiscountGoods
(
calculationDiscountGoodsList
,
goodsId
,
1
,
checkSpqInfoResponseDto
.
getPrice
(),
100
,
cartGoodsUid
);
}
}
validCouponMap
.
put
(
spqId
,
checkSpqInfoResponseDto
);
cartGoods
.
setName
(
checkSpqInfoResponseDto
.
getCouponName
());
cartGoods
.
setSpuName
(
checkSpqInfoResponseDto
.
getCouponName
());
// 添加请求的优惠券信息
ActivityCalculationDiscountRequestDto
.
CalculationDiscountCoupon
coupon
=
new
ActivityCalculationDiscountRequestDto
.
CalculationDiscountCoupon
();
coupon
.
setCode
(
checkSpqInfoResponseDto
.
getCouponCode
());
coupon
.
setActivityCode
(
checkSpqInfoResponseDto
.
getActiveCode
());
coupons
.
add
(
coupon
);
// 添加商品券代表的商品
String
goodsId
=
StringUtils
.
isEmpty
(
checkSpqInfoResponseDto
.
getSkuId
())
?
checkSpqInfoResponseDto
.
getSpuId
()
:
checkSpqInfoResponseDto
.
getSkuId
();
if
(
GoodsTypeEnum
.
HG_COUPON_GOODS
.
getGoodsType
().
equals
(
cartGoods
.
getGoodsType
()))
{
this
.
addCalculationDiscountGoods
(
calculationDiscountGoodsList
,
goodsId
,
1
,
checkSpqInfoResponseDto
.
getPrice
(),
100
,
cartGoodsUid
,
cartGoods
.
getSpuId
());
}
else
{
this
.
addCalculationDiscountGoods
(
calculationDiscountGoodsList
,
goodsId
,
1
,
checkSpqInfoResponseDto
.
getPrice
(),
100
,
cartGoodsUid
);
}
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
View file @
b80bd9a4
...
...
@@ -1182,7 +1182,8 @@ public class ShoppingCartMCoffeeServiceImpl {
for
(
MaterialRequestVo
materialRequestVo
:
vo
.
getProductMaterialList
())
{
CartGoods
.
MaterialGoods
materialGoods
=
new
CartGoods
.
MaterialGoods
();
materialGoods
.
setSpuId
(
materialRequestVo
.
getSpuId
());
materialGoods
.
setGroupId
(
materialRequestVo
.
getGroupId
());
materialGoods
.
setCustomerCode
(
materialRequestVo
.
getCustomerCode
());
// materialGoods.setGroupId(materialRequestVo.getGroupId());
comboxMaterialGoodsList
.
add
(
materialGoods
);
}
productCombox
.
setProductMaterialList
(
comboxMaterialGoodsList
);
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/calculation/CouponDiscountCalculation.java
View file @
b80bd9a4
...
...
@@ -367,7 +367,6 @@ public class CouponDiscountCalculation {
res
.
setStoreId
(
requestVo
.
getStoreId
());
res
.
setChannelIdList
(
commonService
.
getOrgCodes
(
requestVo
.
getPartnerId
(),
requestVo
.
getStoreId
()));
res
.
setCouponCodes
(
couponCodes
);
List
<
CartGoods
>
productList
=
new
ArrayList
<>();
List
<
CouponProductVo
>
calculAmountProductList
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isNotEmpty
(
cartGoods
))
{
cartGoods
.
forEach
(
cartGood
->
{
...
...
@@ -405,7 +404,7 @@ public class CouponDiscountCalculation {
// });
// }
});
res
.
setProductList
(
productList
);
res
.
setProductList
(
cartGoods
);
Long
totalAmount
=
createProductRequest
(
cartGoods
,
calculAmountProductList
);
res
.
setTotalAmount
(
Integer
.
valueOf
(
totalAmount
.
toString
()));
resList
.
add
(
res
);
...
...
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