Commit c43fa74d authored by hanfeng's avatar hanfeng

Merge remote-tracking branch 'origin/master-modify-cutAmount' into master-modify-cutAmount

parents 8041c29b 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;
/** /**
......
...@@ -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;
/** /**
......
...@@ -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;
......
...@@ -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())) {
......
...@@ -95,8 +95,8 @@ public class OrderAccountBiz extends BaseBiz<OrderAccountMapper,OrderAccount> { ...@@ -95,8 +95,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.getOrderAmount().subtract(mainItemRealAmount))); oad.setOrderAmount(refundMainGoodsAmount.add(baseOrder.getGoodsAmount().subtract(mainItemRealAmount)));
BigDecimal refundAmount = oad.getOrderAmount(); BigDecimal refundAmount = oad.getOrderAmount();
// 押金 // 押金
......
...@@ -386,9 +386,9 @@ public class OrderRentVehicleService extends AbstractOrderHandle<OrderRentVehicl ...@@ -386,9 +386,9 @@ public class OrderRentVehicleService extends AbstractOrderHandle<OrderRentVehicl
private String handleChildren(RentVehicleBO detail, Integer vehicleDayNum) { private String handleChildren(RentVehicleBO detail, Integer vehicleDayNum) {
StringBuffer childrenStr = new StringBuffer(""); StringBuffer childrenStr = new StringBuffer("");
if(vehicleDayNum > 0) { // if(vehicleDayNum > 0) {
childrenStr.append(",${tem_0101}"); childrenStr.append(",${tem_0101}");
} // }
if(DRIVER_TYPE_COMPANY.equals(detail.getDriverType())) { if(DRIVER_TYPE_COMPANY.equals(detail.getDriverType())) {
childrenStr.append(",${tem_0102}"); childrenStr.append(",${tem_0102}");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment