diff --git a/mhd_bms/src/main/java/com/mhd/bms/domain/billManage/repository/persistence/BillManageImpl.java b/mhd_bms/src/main/java/com/mhd/bms/domain/billManage/repository/persistence/BillManageImpl.java index 7ef870c2d..07727abc7 100644 --- a/mhd_bms/src/main/java/com/mhd/bms/domain/billManage/repository/persistence/BillManageImpl.java +++ b/mhd_bms/src/main/java/com/mhd/bms/domain/billManage/repository/persistence/BillManageImpl.java @@ -198,6 +198,8 @@ public class BillManageImpl extends ServiceImpl 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 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 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 im if (ncUrl!=null&&ncUrl!="") { url = ncUrl; } else { + reconciliation.setSynchronousStatus(2); + billManageMapper.updateById(reconciliation); throw new ServiceException("未找到该组织的推送地址!"); } List bmsMakeOutInvoiceItems = bmsMakeOutInvoiceItemMapper.selectList(new LambdaQueryWrapper().eq(BmsMakeOutInvoiceItem::getMakeId, make.getId())); @@ -674,6 +685,8 @@ public class BillManageImpl extends ServiceImpl 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 im } } + } else { + reconciliation.setSynchronousStatus(2); + billManageMapper.updateById(reconciliation); } } catch (JAXBException e) { + reconciliation.setSynchronousStatus(2); + billManageMapper.updateById(reconciliation); e.printStackTrace(); } return true; diff --git a/mhd_finance/src/main/java/com/linke/finance/domain/reconciliation/repository/persistence/ReconciliationImpl.java b/mhd_finance/src/main/java/com/linke/finance/domain/reconciliation/repository/persistence/ReconciliationImpl.java index ad4bd7ba4..250bc2904 100644 --- a/mhd_finance/src/main/java/com/linke/finance/domain/reconciliation/repository/persistence/ReconciliationImpl.java +++ b/mhd_finance/src/main/java/com/linke/finance/domain/reconciliation/repository/persistence/ReconciliationImpl.java @@ -444,6 +444,8 @@ public class ReconciliationImpl extends ServiceImpl 0) { url = urlList.get(0).getInterfaceTypeValue(); } else { + reconciliation.setSynchronousStatus(2); + reconciliationMapper.updateById(reconciliation); throw new ServiceException("未找到该组织的推送地址!"); } String invoiceNumber=""; @@ -625,6 +627,8 @@ public class ReconciliationImpl extends ServiceImpl0?result.getData().get(0):null; } if (order==null){ + reconciliation.setSynchronousStatus(2); + reconciliationMapper.updateById(reconciliation); throw new ServiceException("未找到对应订单信息"); } String url = ""; @@ -688,6 +697,8 @@ public class ReconciliationImpl extends ServiceImpl 0) { url = urlList.get(0).getInterfaceTypeValue(); } else { + reconciliation.setSynchronousStatus(2); + reconciliationMapper.updateById(reconciliation); throw new ServiceException("未找到该组织的推送地址!"); } @@ -771,6 +782,9 @@ public class ReconciliationImpl extends ServiceImpl0?result.getData().get(0):null; } if (order==null){ + reconciliation.setSynchronousStatus(2); + reconciliationMapper.updateById(reconciliation); throw new ServiceException("未找到对应订单信息"); } String url = ""; @@ -940,6 +960,8 @@ public class ReconciliationImpl extends ServiceImpl 0) { url = urlList.get(0).getInterfaceTypeValue(); } else { + reconciliation.setSynchronousStatus(2); + reconciliationMapper.updateById(reconciliation); throw new ServiceException("未找到该组织的推送地址!"); } @@ -1023,6 +1045,9 @@ public class ReconciliationImpl extends ServiceImpl 0) { url = urlList.get(0).getInterfaceTypeValue(); } else { + reconciliation.setSynchronousStatus(2); + reconciliationMapper.updateById(reconciliation); throw new ServiceException("未找到该组织的推送地址!"); } if(result.getCode()==200){ @@ -1230,7 +1261,13 @@ public class ReconciliationImpl extends ServiceImpl0?result.getData().get(0):null; } if (order==null){ + reconciliation.setSynchronousStatus(2); + reconciliationMapper.updateById(reconciliation); throw new ServiceException("未找到对应订单信息"); } String url = ""; @@ -1404,6 +1445,8 @@ public class ReconciliationImpl extends ServiceImpl 0) { url = urlList.get(0).getInterfaceTypeValue(); } else { + reconciliation.setSynchronousStatus(2); + reconciliationMapper.updateById(reconciliation); throw new ServiceException("未找到该组织的推送地址!"); } R> itemR = wlhyServiceFeign.selectMakeOutInvoiceItemList(make); @@ -1488,6 +1531,9 @@ public class ReconciliationImpl extends ServiceImpl0?result.getData().get(0):null; } if (order==null){ + reconciliation.setSynchronousStatus(2); + reconciliationMapper.updateById(reconciliation); throw new ServiceException("未找到对应订单信息"); } String url = ""; @@ -1656,6 +1708,8 @@ public class ReconciliationImpl extends ServiceImpl 0) { url = urlList.get(0).getInterfaceTypeValue(); } else { + reconciliation.setSynchronousStatus(2); + reconciliationMapper.updateById(reconciliation); throw new ServiceException("未找到该组织的推送地址!"); } R> itemR = wlhyServiceFeign.selectMakeOutInvoiceItemList(make); @@ -1739,7 +1793,13 @@ public class ReconciliationImpl extends ServiceImpl