|
@@ -170,6 +170,8 @@ public class PaymentRecordServiceImpl implements PaymentRecordService {
|
|
|
public void dataUpdate(SwBillingRecordDo swBillingRecordDo, SwUserManagementDo swUserManagementDo, List<SwBillManagementPaidDo> bills,
|
|
|
List<SwBillManagementUnpaidDo> unpaidDoList) {
|
|
|
BigDecimal balanceChange = swBillingRecordDo.getAfterpaymentbalance().subtract(swUserManagementDo.getAccountbalance());
|
|
|
+ log.debug("开始更新当前用户的余额信息!用户:{}的原余额为:{},缴费金额为:{},实际应缴为:{},金额变化:{}", swUserManagementDo.getUsernumber(),
|
|
|
+ swUserManagementDo.getAccountbalance(),swBillingRecordDo.getPaidin(),swBillingRecordDo.getActualdue(),balanceChange);
|
|
|
swUserManagementService.balanceAdd(swUserManagementDo.getId(), balanceChange);
|
|
|
swBillingRecordService.save(swBillingRecordDo);
|
|
|
if (!bills.isEmpty()) {
|