|
@@ -960,8 +960,6 @@ public class AmountWaterUsedAmountServiceImpl implements AmountWaterUsedAmountSe
|
|
|
//预存余额-用水金额=用水余额
|
|
|
balance = remaining.subtract(fee);
|
|
|
}
|
|
|
- }else{
|
|
|
- balance = BigDecimal.ZERO;
|
|
|
}
|
|
|
//查询该户是否有历史欠费
|
|
|
BigDecimal historyDebt = payPayReceivableMapper.getHistoryDebt(siteId,customerId,accountId);
|
|
@@ -971,6 +969,7 @@ public class AmountWaterUsedAmountServiceImpl implements AmountWaterUsedAmountSe
|
|
|
payRechargeaccountMapper.updateBalance(balance,new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()),payRechargeaccountDto.getId());
|
|
|
//修改账户用水余额字段跟预计费日期
|
|
|
log.info("【"+payRechargeaccountDto.getAccountnumber()+"】户:用水余额:"+balance+",预计费日期:"+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
|
|
|
+ balance = BigDecimal.ZERO;
|
|
|
}
|
|
|
}
|
|
|
}else{
|