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
23aff9e5
Commit
23aff9e5
authored
Oct 21, 2020
by
yu.sun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'qa' of gitlab.freemud.com:order-group-application/order-group into qa
parents
2c840a72
76467730
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
5 deletions
+22
-5
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+8
-1
order-application-service/src/main/java/cn/freemud/entities/vo/ProductVo.java
+2
-0
order-application-service/src/main/java/cn/freemud/entities/vo/QueryOrderResponseVo.java
+8
-0
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+4
-4
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
23aff9e5
...
...
@@ -1207,6 +1207,7 @@ public class OrderAdapter {
Long
promotionAmount
=
0L
;
Long
deliveryAmount
=
0L
;
Long
packageAmount
=
0L
;
Long
originalDeliveryAmount
=
0L
;
//限时特价优惠金额
Long
discountLimitAmount
=
0L
;
Long
couponAmount
=
0L
;
...
...
@@ -1233,6 +1234,7 @@ public class OrderAdapter {
if
(
OrderAccountType
.
DELIVERY_AMOUNT
.
getCode
().
equals
(
accountBean
.
getType
()))
{
//deliveryAmount = accountBean.getPrice();
deliveryAmount
=
null
!=
accountBean
.
getActualCostAmount
()
?
accountBean
.
getActualCostAmount
()
:
accountBean
.
getPrice
();
originalDeliveryAmount
=
accountBean
.
getPrice
();
}
if
(
OrderAccountType
.
PACK_AMOUNT
.
getCode
().
equals
(
accountBean
.
getType
()))
{
packageAmount
=
accountBean
.
getPrice
();
...
...
@@ -1255,9 +1257,13 @@ public class OrderAdapter {
customerScorePrompt
=
decimalFormat
.
format
(
customerScoreAmount
/
100.0
);
// customerScorePrompt = "积分抵扣-¥" + customerScoreAmountStr;
}
if
(
Integer
.
valueOf
(
99
).
equals
(
accountBean
.
getType
()))
{
responseVo
.
setFreightCouponName
(
accountBean
.
getName
());
}
}
}
responseVo
.
setDeliveryAmount
(
deliveryAmount
);
responseVo
.
setOriginalDeliveryAmount
(
originalDeliveryAmount
);
responseVo
.
setPackageAmount
(
packageAmount
);
responseVo
.
setDiscountLimitAmount
(
discountLimitAmount
);
responseVo
.
setFullDiscountAmount
(
fullDiscountAmount
);
...
...
@@ -1976,7 +1982,8 @@ public class OrderAdapter {
discountTotalAmount
=
discountTotalAmount
+
productDiscount
.
getDiscountAmount
()*
productDiscount
.
getDiscountQty
();
if
(
OrderAccountType
.
PRODUCT_COUPON
.
getCode
().
equals
(
productDiscount
.
getDiscountType
()))
{
hasProductCoupon
=
true
;
if
(
"啡常月享卡"
.
equals
(
productDiscount
.
getDiscountDesc
()))
{
Integer
extendType
=
StringUtils
.
isBlank
(
productDiscount
.
getAddInfo
())?
null
:
JSON
.
parseObject
(
productDiscount
.
getAddInfo
()).
getInteger
(
"extendType"
);
if
(
"啡常月享卡"
.
equals
(
productDiscount
.
getDiscountDesc
())
||
(
null
!=
extendType
&&
4
==
extendType
))
{
productVo
.
setCouponName
(
productDiscount
.
getDiscountDesc
());
}
else
{
productVo
.
setName
(
productDiscount
.
getDiscountDesc
());
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/ProductVo.java
View file @
23aff9e5
...
...
@@ -42,6 +42,8 @@ public class ProductVo {
* 商品spu名称
*/
private
String
spuName
;
private
String
couponName
;
/**
* 商品的规格信息加属性信息
*/
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/QueryOrderResponseVo.java
View file @
23aff9e5
...
...
@@ -99,6 +99,14 @@ public class QueryOrderResponseVo {
*/
private
Long
deliveryAmount
;
/**
* 配送费原价
*/
private
Long
originalDeliveryAmount
;
/**
* 运费券名称
*/
private
String
freightCouponName
;
/**
* 限时折扣优惠金额
*/
private
Long
discountLimitAmount
;
...
...
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
23aff9e5
...
...
@@ -1222,9 +1222,9 @@ public class OrderServiceImpl implements Orderservice {
&&
queryOrderResponseVo
.
getRefundStatus
()
!=
null
&&
queryOrderResponseVo
.
getRefundStatus
()
==
1
)
{
Integer
automaticRefund
=
storeInfo
.
getBizVO
().
getStoreConfig
().
getAutomaticRefund
();
if
(
automaticRefund
!=
null
&&
automaticRefund
==
1
){
queryOrderResponseVo
.
setRefundTips
(
"若48小时
后商家未处理,自动同意
"
);
queryOrderResponseVo
.
setRefundTips
(
"若48小时
内未成功退款,请联系商家人工处理
"
);
}
else
{
queryOrderResponseVo
.
setRefundTips
(
"若48小时
后商家未处理,拒绝退款
"
);
queryOrderResponseVo
.
setRefundTips
(
"若48小时
内未成功退款,请联系商家人工处理
"
);
}
}
...
...
@@ -1349,9 +1349,9 @@ public class OrderServiceImpl implements Orderservice {
&&
queryOrderResponseVo
.
getRefundStatus
()
!=
null
&&
queryOrderResponseVo
.
getRefundStatus
()
==
1
)
{
Integer
automaticRefund
=
storeInfo
.
getBizVO
().
getStoreConfig
().
getAutomaticRefund
();
if
(
automaticRefund
!=
null
&&
automaticRefund
==
1
){
queryOrderResponseVo
.
setRefundTips
(
"若48小时
后商家未处理,自动同意
"
);
queryOrderResponseVo
.
setRefundTips
(
"若48小时
内未成功退款,请联系商家人工处理
"
);
}
else
{
queryOrderResponseVo
.
setRefundTips
(
"若48小时
后商家未处理,拒绝退款
"
);
queryOrderResponseVo
.
setRefundTips
(
"若48小时
内未成功退款,请联系商家人工处理
"
);
}
}
...
...
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