|
|
|
@ -155,7 +155,7 @@ public class CashRefundServiceImpl implements RefundService { |
|
|
|
item.setReceivedTime(cashCollection.getReceivedTime()); |
|
|
|
item.setPayVoucher(cashCollection.getVoucher()); |
|
|
|
item.setPayRemark(cashCollection.getRemark()); |
|
|
|
item.setHandlingCharge(cashCollection.getHandlingCharge()); |
|
|
|
item.setHandlingCharge(cashCollection.getHandlingCharge().divide(new BigDecimal(100), 2, RoundingMode.HALF_UP)); |
|
|
|
|
|
|
|
// 处理金币金额 |
|
|
|
if (item.getPermanentGold() != null) { |
|
|
|
@ -177,6 +177,9 @@ public class CashRefundServiceImpl implements RefundService { |
|
|
|
if(cashRecordRefund.getRefundReason()== null){ |
|
|
|
throw new Exception("请填写退款理由") ; |
|
|
|
} |
|
|
|
if (cashRecordRefund.getHandlingCharge()== null){ |
|
|
|
throw new Exception("请先填写手续费") ; |
|
|
|
} |
|
|
|
CashRecordDone cashRecordDonetwo = new CashRecordDone(); |
|
|
|
cashRecordDonetwo.setAreaServise(cashRecordRefund.getAreaServise()); |
|
|
|
cashRefundMapper.addAudit(cashRecordDonetwo); |
|
|
|
@ -245,6 +248,7 @@ public class CashRefundServiceImpl implements RefundService { |
|
|
|
throw new RuntimeException("未输入订单号"); |
|
|
|
} |
|
|
|
CashRecordDone cashRecordDone1 = new CashRecordDone(); |
|
|
|
cashRecordDone1.setId(cashRecordDone.getRelatedId()); |
|
|
|
cashRecordDone1.setOrderCode(cashRecordDone.getOrderCode().substring(2)); |
|
|
|
cashRecordDone1.setStatus(4); |
|
|
|
if (cashRecordDone1.getId()!=null||cashRecordDone1.getOrderCode()!= null){ |
|
|
|
|