|
|
|
@@ -144,6 +144,7 @@ public class WxBillOtherDepositServiceImpl implements WxBillOtherDepositService |
|
|
|
if (wxBillOtherDeposit == null) { |
|
|
|
return new ResultData(ErrorCode.BILL_ROUTINE_IS_NOT_FOUND); |
|
|
|
} |
|
|
|
Integer addpay = wxBillOtherDeposit.getPay(); |
|
|
|
wxBillOtherDeposit.setPayDate(record.getPayDate()); |
|
|
|
wxBillOtherDeposit.setPay(record.getPay()); |
|
|
|
wxBillOtherDeposit.setReceivePay(record.getReceivePay()); |
|
|
|
@@ -161,7 +162,7 @@ public class WxBillOtherDepositServiceImpl implements WxBillOtherDepositService |
|
|
|
WxBillAction wxBillAction = new WxBillAction(); |
|
|
|
wxBillAction.setBillId(wxBillOtherDeposit.getId()); |
|
|
|
String message = EnumBillPayWay.getEnum(record.getPayWay()).getMessage(); |
|
|
|
String price = new BigDecimal(record.getPay()).divide(new BigDecimal(100)).toPlainString(); |
|
|
|
String price = new BigDecimal(record.getPay() - addpay).divide(new BigDecimal(100)).toPlainString(); |
|
|
|
wxBillAction.setDetails(message + price + "元"); |
|
|
|
wxBillAction.setAction(EnumBillAction.OFFLINE_PAY.getCode()); |
|
|
|
wxBillAction.setUserId(user.getId()); |
|
|
|
|