开票修改对账单状态;

This commit is contained in:
王奎兴
2026-02-27 13:41:18 +08:00
parent 012ff4de91
commit 17c1751474
@@ -161,6 +161,7 @@ public class BmsInvoiceListServiceImpl extends ServiceImpl<BmsInvoiceListMapper,
BillManage billManage = billManageMapper.selectById(bmsInvoiceListAddDTO.getBillManageId());
if (billManage != null) {
billManage.setIsInvoice(1);
billManage.setInvoiceId(bmsInvoiceList.getId().toString());
billManageMapper.updateById(billManage);
}
/*AjaxResult ajaxResult = financeServiceFeign.editIsInvoice(transportationId,1,bmsInvoiceList.getId(),"",bmsInvoiceList.getApplyNumber());
@@ -337,6 +338,14 @@ public class BmsInvoiceListServiceImpl extends ServiceImpl<BmsInvoiceListMapper,
bmsMakeOutInvoice.setInvoiceValue(invoiceValue);
bmsMakeOutInvoiceMapper.insert(bmsMakeOutInvoice);
}
Long id = bmsInvoiceList.getId();
List<BillManage> billManages = billManageMapper.selectList(new QueryWrapper<BillManage>().lambda().eq(BillManage::getInvoiceId, id.toString()));
if (ObjectUtil.isNotNull(billManages) && billManages.size() > 0) {
for (BillManage billManage : billManages) {
billManage.setIsInvoice(2);
billManageMapper.updateById(billManage);
}
}
this.updateById(bmsInvoiceList);