|
@@ -514,7 +514,7 @@ public class SellOrderServiceImpl extends BaseServiceImpl<Integer, SellOrder> im
|
|
|
|
|
|
//乐器维修
|
|
|
if (order.getType().equals(OrderTypeEnum.REPAIR)) {
|
|
|
- StudentRepair repairInfo = studentRepairDao.getRepairInfo(Integer.parseInt(order.getMusicGroupId()));
|
|
|
+ /*StudentRepair repairInfo = studentRepairDao.getRepairInfo(Integer.parseInt(order.getMusicGroupId()));
|
|
|
|
|
|
if (StringUtils.isBlank(repairInfo.getGoodsJson())) {
|
|
|
sellAmount.put("actualAmount", BigDecimal.ZERO);
|
|
@@ -552,7 +552,10 @@ public class SellOrderServiceImpl extends BaseServiceImpl<Integer, SellOrder> im
|
|
|
BigDecimal goodsTotalBalance = goodsTotalPrice.multiply(balance).divide(totalAmount, 2, BigDecimal.ROUND_DOWN);
|
|
|
BigDecimal goodsTotalActualAmount = goodsTotalPrice.multiply(order.getActualAmount()).divide(totalAmount, 2, BigDecimal.ROUND_DOWN);
|
|
|
sellAmount.put("actualAmount", goodsTotalActualAmount.subtract(cloudIncome));
|
|
|
- sellAmount.put("balance", goodsTotalBalance.subtract(cloudBalanceIncome));
|
|
|
+ sellAmount.put("balance", goodsTotalBalance.subtract(cloudBalanceIncome));*/
|
|
|
+
|
|
|
+ sellAmount.put("actualAmount", order.getActualAmount().subtract(cloudIncome));
|
|
|
+ sellAmount.put("balance", order.getBalancePaymentAmount() == null ? BigDecimal.ZERO : order.getBalancePaymentAmount().subtract(cloudBalanceIncome));
|
|
|
return sellAmount;
|
|
|
}
|
|
|
|