开票修改对账单状态;
This commit is contained in:
+9
@@ -161,6 +161,7 @@ public class BmsInvoiceListServiceImpl extends ServiceImpl<BmsInvoiceListMapper,
|
|||||||
BillManage billManage = billManageMapper.selectById(bmsInvoiceListAddDTO.getBillManageId());
|
BillManage billManage = billManageMapper.selectById(bmsInvoiceListAddDTO.getBillManageId());
|
||||||
if (billManage != null) {
|
if (billManage != null) {
|
||||||
billManage.setIsInvoice(1);
|
billManage.setIsInvoice(1);
|
||||||
|
billManage.setInvoiceId(bmsInvoiceList.getId().toString());
|
||||||
billManageMapper.updateById(billManage);
|
billManageMapper.updateById(billManage);
|
||||||
}
|
}
|
||||||
/*AjaxResult ajaxResult = financeServiceFeign.editIsInvoice(transportationId,1,bmsInvoiceList.getId(),"",bmsInvoiceList.getApplyNumber());
|
/*AjaxResult ajaxResult = financeServiceFeign.editIsInvoice(transportationId,1,bmsInvoiceList.getId(),"",bmsInvoiceList.getApplyNumber());
|
||||||
@@ -337,6 +338,14 @@ public class BmsInvoiceListServiceImpl extends ServiceImpl<BmsInvoiceListMapper,
|
|||||||
bmsMakeOutInvoice.setInvoiceValue(invoiceValue);
|
bmsMakeOutInvoice.setInvoiceValue(invoiceValue);
|
||||||
bmsMakeOutInvoiceMapper.insert(bmsMakeOutInvoice);
|
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);
|
this.updateById(bmsInvoiceList);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user