Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
70387488
Commit
70387488
authored
Sep 16, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
7931bba9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
9 deletions
+10
-9
BaseOrder.java
...c/main/java/com/xxfc/platform/order/entity/BaseOrder.java
+2
-2
OrderAccountDetail.java
.../xxfc/platform/order/pojo/account/OrderAccountDetail.java
+2
-2
OrderPriceVO.java
...java/com/xxfc/platform/order/pojo/price/OrderPriceVO.java
+1
-1
BaseOrderBiz.java
...c/main/java/com/xxfc/platform/order/biz/BaseOrderBiz.java
+3
-2
OrderAccountBiz.java
...ain/java/com/xxfc/platform/order/biz/OrderAccountBiz.java
+2
-2
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/entity/BaseOrder.java
View file @
70387488
...
@@ -78,10 +78,10 @@ public class BaseOrder implements Serializable {
...
@@ -78,10 +78,10 @@ public class BaseOrder implements Serializable {
private
BigDecimal
goodsAmount
;
private
BigDecimal
goodsAmount
;
/**
/**
* 订单
价格
* 订单
总金额
*/
*/
@Column
(
name
=
"order_amount"
)
@Column
(
name
=
"order_amount"
)
@ApiModelProperty
(
value
=
"订单
价格
"
)
@ApiModelProperty
(
value
=
"订单
总金额
"
)
private
BigDecimal
orderAmount
;
private
BigDecimal
orderAmount
;
/**
/**
...
...
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/account/OrderAccountDetail.java
View file @
70387488
...
@@ -9,7 +9,7 @@ import java.util.List;
...
@@ -9,7 +9,7 @@ import java.util.List;
@Data
@Data
public
class
OrderAccountDetail
{
public
class
OrderAccountDetail
{
/**
/**
* 实际返回订单款
* 实际返回订单款
账单的的orderAmount 对应的是 订单的商品金额
*/
*/
BigDecimal
orderAmount
;
BigDecimal
orderAmount
;
/**
/**
...
@@ -17,7 +17,7 @@ public class OrderAccountDetail {
...
@@ -17,7 +17,7 @@ public class OrderAccountDetail {
*/
*/
BigDecimal
depositAmount
;
BigDecimal
depositAmount
;
/**
/**
* 原来要返回的订单款
* 原来要返回的订单款
账单的的orderAmount 对应的是 订单的商品金额
*/
*/
BigDecimal
originOrderAmount
;
BigDecimal
originOrderAmount
;
/**
/**
...
...
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/price/OrderPriceVO.java
View file @
70387488
...
@@ -7,7 +7,7 @@ import java.math.BigDecimal;
...
@@ -7,7 +7,7 @@ import java.math.BigDecimal;
@Data
@Data
public
class
OrderPriceVO
{
public
class
OrderPriceVO
{
@ApiModelProperty
(
value
=
"订单
价格
"
)
@ApiModelProperty
(
value
=
"订单
总金额
"
)
public
BigDecimal
orderAmount
;
public
BigDecimal
orderAmount
;
@ApiModelProperty
(
value
=
"商品价格"
)
@ApiModelProperty
(
value
=
"商品价格"
)
public
BigDecimal
goodsAmount
;
public
BigDecimal
goodsAmount
;
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/BaseOrderBiz.java
View file @
70387488
...
@@ -435,8 +435,9 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> {
...
@@ -435,8 +435,9 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> {
//订单账款类
//订单账款类
OrderAccountDetail
oad
=
new
OrderAccountDetail
();
OrderAccountDetail
oad
=
new
OrderAccountDetail
();
oad
.
setOriginOrderAmount
(
baseOrder
.
getRealAmount
());
oad
.
setOriginOrderAmount
(
baseOrder
.
getGoodsAmount
());
oad
.
setOrderAmount
(
baseOrder
.
getRealAmount
());
//账单的的orderAmount 对应 的是商品金额
oad
.
setOrderAmount
(
baseOrder
.
getGoodsAmount
());
//如果是会员订单,则触发会员效益
//如果是会员订单,则触发会员效益
if
(
OrderTypeEnum
.
MEMBER
.
getCode
().
equals
(
baseOrder
.
getType
()))
{
if
(
OrderTypeEnum
.
MEMBER
.
getCode
().
equals
(
baseOrder
.
getType
()))
{
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderAccountBiz.java
View file @
70387488
...
@@ -94,8 +94,8 @@ public class OrderAccountBiz extends BaseBiz<OrderAccountMapper,OrderAccount> {
...
@@ -94,8 +94,8 @@ public class OrderAccountBiz extends BaseBiz<OrderAccountMapper,OrderAccount> {
BigDecimal
refundMainGoodsAmount
=
calculateRefund
(
originalRefundAmount
,
timeLag
,
dicParentKey
,
refundDescBuilder
,
oad
);
BigDecimal
refundMainGoodsAmount
=
calculateRefund
(
originalRefundAmount
,
timeLag
,
dicParentKey
,
refundDescBuilder
,
oad
);
refundMainGoodsAmount
=
refundMainGoodsAmount
.
setScale
(
2
,
RoundingMode
.
HALF_UP
);
refundMainGoodsAmount
=
refundMainGoodsAmount
.
setScale
(
2
,
RoundingMode
.
HALF_UP
);
//退款金额 = 主要商品退款 + (其他商品退款) 即--> 主要商品退款 + (
订单
总商品款 - 主要商品款)
//退款金额 = 主要商品退款 + (其他商品退款) 即--> 主要商品退款 + (总商品款 - 主要商品款)
oad
.
setOrderAmount
(
refundMainGoodsAmount
.
add
(
baseOrder
.
get
Order
Amount
().
subtract
(
mainItemRealAmount
)));
oad
.
setOrderAmount
(
refundMainGoodsAmount
.
add
(
baseOrder
.
get
Goods
Amount
().
subtract
(
mainItemRealAmount
)));
BigDecimal
refundAmount
=
oad
.
getOrderAmount
();
BigDecimal
refundAmount
=
oad
.
getOrderAmount
();
// 押金
// 押金
...
...
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