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/EamReportRepairServiceImpl.java | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/service/impl/EamReportRepairServiceImpl.java b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/service/impl/EamReportRepairServiceImpl.java index ef674b6..66933db 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/service/impl/EamReportRepairServiceImpl.java +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/service/impl/EamReportRepairServiceImpl.java @@ -164,7 +164,11 @@ //鏇存柊璁惧缁翠慨鐘舵�� eamEquipmentExtendService.updateEquipmentRepairStatus(entity.getEquipmentId(), EquipmentRepairStatus.WAIT_REPAIR.name()); //鎺ㄩ�佷紒涓氬井淇℃秷鎭� - sendQywxTemplateCardMessage(entity); + try { + sendQywxTemplateCardMessage(entity); + } catch (Exception e) { + log.error("鎺ㄩ�佷紒涓氬井淇℃秷鎭け璐ワ細" + e.getMessage(), e); + } return entity; } @@ -196,7 +200,11 @@ //鏇存柊璁惧缁翠慨鐘舵�� eamEquipmentExtendService.updateEquipmentRepairStatus(entity.getEquipmentId(), EquipmentRepairStatus.WAIT_REPAIR.name()); //鎺ㄩ�佷紒涓氬井淇℃秷鎭� - sendQywxTemplateCardMessage(entity); + try { + sendQywxTemplateCardMessage(entity); + } catch (Exception e) { + log.error("鎺ㄩ�佷紒涓氬井淇℃秷鎭け璐ワ細" + e.getMessage(), e); + } return entity; } @@ -225,7 +233,11 @@ //鏇存柊璁惧缁翠慨鐘舵�� eamEquipmentExtendService.updateEquipmentRepairStatus(eamReportRepair.getEquipmentId(), EquipmentRepairStatus.WAIT_REPAIR.name()); //鎺ㄩ�佷紒涓氬井淇℃秷鎭� - sendQywxTemplateCardMessage(eamReportRepair); + try { + sendQywxTemplateCardMessage(eamReportRepair); + } catch (Exception e) { + log.error("鎺ㄩ�佷紒涓氬井淇℃秷鎭け璐ワ細" + e.getMessage(), e); + } return eamReportRepair; } -- Gitblit v1.9.3