fix 同时打开新增来款和编辑工作组成员页面时,先新增来款在编辑成员,编辑成员时数据没有更新,会导致来款数据还是之前的
This commit is contained in:
+2
@@ -427,6 +427,8 @@ public class PayWorkingGroupSubItemServiceImpl extends ServiceImpl<PayWorkingGro
|
|||||||
}
|
}
|
||||||
String paymentStatus = payPaymentCheckService.getPaymentStatus(payWorkingGroupSubItem.getReceivableAmount(),payWorkingGroupSubItemOld.getPaidAmount(),payWorkingGroupSubItemOld.getPaymentStatus());
|
String paymentStatus = payPaymentCheckService.getPaymentStatus(payWorkingGroupSubItem.getReceivableAmount(),payWorkingGroupSubItemOld.getPaidAmount(),payWorkingGroupSubItemOld.getPaymentStatus());
|
||||||
payWorkingGroupSubItem.setPaymentStatus(paymentStatus);
|
payWorkingGroupSubItem.setPaymentStatus(paymentStatus);
|
||||||
|
payWorkingGroupSubItem.setInAccount(null);
|
||||||
|
payWorkingGroupSubItem.setPaidAmount(null);
|
||||||
payWorkingGroupSubItemService.updateById(payWorkingGroupSubItem);
|
payWorkingGroupSubItemService.updateById(payWorkingGroupSubItem);
|
||||||
LambdaUpdateWrapper<PayWorkingGroupSubItem> updatePayWorkingGroupSubItem = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<PayWorkingGroupSubItem> updatePayWorkingGroupSubItem = new LambdaUpdateWrapper<>();
|
||||||
updatePayWorkingGroupSubItem.eq(PayWorkingGroupSubItem::getId, workingGroupSubItemId);
|
updatePayWorkingGroupSubItem.eq(PayWorkingGroupSubItem::getId, workingGroupSubItemId);
|
||||||
|
|||||||
Reference in New Issue
Block a user