From 699295ce3e0e1116d1fc20f0fae89b66613bbacf Mon Sep 17 00:00:00 2001 From: cuilei <ray_tsu1@163.com> Date: 星期四, 28 八月 2025 17:40:51 +0800 Subject: [PATCH] 企业微信消息推送增加try catch 只记录错误日志,不抛出异常 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/service/impl/EamInspectionOrderServiceImpl.java | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/service/impl/EamInspectionOrderServiceImpl.java b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/service/impl/EamInspectionOrderServiceImpl.java index 93f2f09..53a7cf3 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/service/impl/EamInspectionOrderServiceImpl.java +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/service/impl/EamInspectionOrderServiceImpl.java @@ -235,7 +235,11 @@ //鏇存柊璁惧淇濆吇鐘舵�� eamEquipmentExtendService.updateEquipmentInspectionStatus(eamInspectionOrder.getEquipmentId(), EquipmentMaintenanceStatus.UNDER_INSPECTION.name()); //鎺ㄩ�佷紒涓氬井淇℃秷鎭� - sendQywxTemplateCardMessage(eamInspectionOrder, null); + try { + sendQywxTemplateCardMessage(eamInspectionOrder, null); + } catch (Exception e) { + log.error("鎺ㄩ�佷紒涓氬井淇℃秷鎭け璐ワ細" + e.getMessage(), e); + } } return true; @@ -432,7 +436,11 @@ //鏇存柊璁惧淇濆吇鐘舵�� eamEquipmentExtendService.updateEquipmentInspectionStatus(eamInspectionOrder.getEquipmentId(), EquipmentMaintenanceStatus.UNDER_INSPECTION.name()); //鎺ㄩ�佷紒涓氬井淇℃秷鎭� - sendQywxTemplateCardMessage(eamInspectionOrder, null); + try { + sendQywxTemplateCardMessage(eamInspectionOrder, null); + } catch (Exception e) { + log.error("鎺ㄩ�佷紒涓氬井淇℃秷鎭け璐ワ細" + e.getMessage(), e); + } return true; } } @@ -513,7 +521,11 @@ //寰俊娑堟伅鎺ㄩ�侊紙宸ュ崟瀹屾垚涓嶆帹閫侊級 if (!InspectionStatus.COMPLETE.name().equals(eamInspectionOrder.getInspectionStatus())) { - sendQywxTemplateCardMessage(eamInspectionOrder, eamInspectionOrderRequest); + try { + sendQywxTemplateCardMessage(eamInspectionOrder, eamInspectionOrderRequest); + } catch (Exception e) { + log.error("鎺ㄩ�佷紒涓氬井淇℃秷鎭け璐ワ細" + e.getMessage(), e); + } } //鏌ヨ鏁版嵁,杩涜璁惧缁翠慨澶勭悊 -- Gitblit v1.9.3