|
@@ -109,7 +109,9 @@ public class WriteOffRecordsServiceImpl extends ServiceImpl<WriteOffRecordsMappe
|
|
|
AccountRunningWater accountRunningWater = accountRunningWaterService.getOne(q -> q.eq(AccountRunningWater::getBusinessId, accountPayment.getId()));
|
|
|
Assert.notEmpty(accountRunningWater, "查询不到打款流水信息");
|
|
|
//删除往来信息
|
|
|
- if (accountRunningWater.getIsTransaction() == 1) {
|
|
|
+ Integer isTransaction = accountRunningWater.getIsTransaction();
|
|
|
+ isTransaction = ObjectUtil.isEmpty(isTransaction) ? 0 : isTransaction;
|
|
|
+ if (1 == isTransaction) {
|
|
|
TaxRefundDetails taxRefundDetails = taxRefundDetailsService.getOne(q -> q.eq(TaxRefundDetails::getAccountRunningWaterId, accountRunningWater.getId()));
|
|
|
if (ObjectUtil.isNotEmpty(taxRefundDetails)) {
|
|
|
taxRefundDetailsService.removeById(taxRefundDetails.getId());
|