|
@@ -106,6 +106,10 @@ public class WriteOffRecordsServiceImpl extends ServiceImpl<WriteOffRecordsMappe
|
|
|
.setSql("remainder = remainder + " + accountPaymentRecords.getAmount())
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
+ //删除打款记录
|
|
|
+ accountPaymentRecordsService.remove(q -> q.eq(AccountPaymentRecords::getAccountPaymentId, accountPayment.getId()));
|
|
|
+
|
|
|
//删除打款对应的流水
|
|
|
List<AccountRunningWater> accountRunningWaterList = accountRunningWaterService.list(q -> q.eq(AccountRunningWater::getBusinessId, accountPayment.getId()));
|
|
|
Assert.notEmpty(accountRunningWaterList, "查询不到打款流水信息");
|