推送nc状态更新修改;新字段sql整理;

This commit is contained in:
王奎兴
2026-03-28 10:20:10 +08:00
parent 97e41ffe1c
commit 02d2603087
3 changed files with 87 additions and 1 deletions
@@ -198,6 +198,8 @@ public class BillManageImpl extends ServiceImpl<BillManageMapper, BillManage> im
if (ncUrl!=null&&ncUrl!="") {
url = ncUrl;
} else {
reconciliation.setSynchronousStatus(2);
billManageMapper.updateById(reconciliation);
throw new ServiceException("未找到该组织的推送地址!");
}
String salesmanId = reconciliation.getSalesmanId();
@@ -403,6 +405,8 @@ public class BillManageImpl extends ServiceImpl<BillManageMapper, BillManage> im
billManageMapper.updateById(reconciliation);
response.close();
} catch (Exception e) {
reconciliation.setSynchronousStatus(2);
billManageMapper.updateById(reconciliation);
e.printStackTrace();
} finally {
try {
@@ -412,8 +416,13 @@ public class BillManageImpl extends ServiceImpl<BillManageMapper, BillManage> im
}
}
}
} else {
reconciliation.setSynchronousStatus(2);
billManageMapper.updateById(reconciliation);
}
} catch (JAXBException e) {
reconciliation.setSynchronousStatus(2);
billManageMapper.updateById(reconciliation);
e.printStackTrace();
}
return true;
@@ -469,6 +478,8 @@ public class BillManageImpl extends ServiceImpl<BillManageMapper, BillManage> im
if (ncUrl!=null&&ncUrl!="") {
url = ncUrl;
} else {
reconciliation.setSynchronousStatus(2);
billManageMapper.updateById(reconciliation);
throw new ServiceException("未找到该组织的推送地址!");
}
List<BmsMakeOutInvoiceItem> bmsMakeOutInvoiceItems = bmsMakeOutInvoiceItemMapper.selectList(new LambdaQueryWrapper<BmsMakeOutInvoiceItem>().eq(BmsMakeOutInvoiceItem::getMakeId, make.getId()));
@@ -674,6 +685,8 @@ public class BillManageImpl extends ServiceImpl<BillManageMapper, BillManage> im
billManageMapper.updateById(reconciliation);
response.close();
} catch (Exception e) {
reconciliation.setSynchronousStatus(2);
billManageMapper.updateById(reconciliation);
e.printStackTrace();
} finally {
try {
@@ -684,8 +697,13 @@ public class BillManageImpl extends ServiceImpl<BillManageMapper, BillManage> im
}
}
} else {
reconciliation.setSynchronousStatus(2);
billManageMapper.updateById(reconciliation);
}
} catch (JAXBException e) {
reconciliation.setSynchronousStatus(2);
billManageMapper.updateById(reconciliation);
e.printStackTrace();
}
return true;