|
|
@@ -94,6 +94,7 @@ public class InvAccountIncoiceServiceImpl extends ServiceImpl<InvAccountIncoiceM
|
|
|
invAccountOperate.setPayMethod(invAccountIncoice.getPayMethod());
|
|
|
invAccountOperate.setCompany(invAccountIncoice1.getOtherUnit());
|
|
|
invAccountOperate.setFundUse(invAccountIncoice.getFundUse());
|
|
|
+ invAccountOperate.setInvoiceId(invAccountIncoice1.getInvoiceId());
|
|
|
|
|
|
invAccountIncoiceMapper.updateById(invAccountIncoice1);
|
|
|
|
|
|
@@ -136,9 +137,13 @@ public class InvAccountIncoiceServiceImpl extends ServiceImpl<InvAccountIncoiceM
|
|
|
invAccountOperate.setApplyAmount("发票撤销 收入撤销");
|
|
|
invAccountOperate.setCompany(enInvAccountIncoice.getInvoiceBy());
|
|
|
|
|
|
+ LambdaQueryWrapper<InvAccountOperate> lambdaQuery = new LambdaQueryWrapper<>();
|
|
|
+ lambdaQuery.eq(InvAccountOperate::getInvoiceId, invAccountIncoice.getInvoiceId());
|
|
|
+
|
|
|
try {
|
|
|
invAccountIncoiceMapper.updateById(invAccountIncoice);
|
|
|
invAccountCardService.updateById(invAccount);
|
|
|
+ invAccountOperateService.remove(lambdaQuery);
|
|
|
}catch (Exception e){
|
|
|
return HttpResult.error("撤销失败");
|
|
|
}
|