| | |
| | | //更新设备维修状态 |
| | | eamEquipmentExtendService.updateEquipmentRepairStatus(eamReportRepair.getEquipmentId(), EquipmentRepairStatus.UNDER_REPAIR.name()); |
| | | //推送企业微信消息 |
| | | sendQywxTemplateCardMessage(eamRepairOrder, eamReportRepair, null); |
| | | try { |
| | | sendQywxTemplateCardMessage(eamRepairOrder, eamReportRepair, null); |
| | | } catch (Exception e) { |
| | | log.error("推送企业微信消息失败:" + e.getMessage(), e); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | //更新设备维修状态 |
| | | eamEquipmentExtendService.updateEquipmentRepairStatus(eamReportRepair.getEquipmentId(), EquipmentRepairStatus.UNDER_REPAIR.name()); |
| | | //推送企业微信消息 |
| | | sendQywxTemplateCardMessage(eamRepairOrder, null, null); |
| | | try { |
| | | sendQywxTemplateCardMessage(eamRepairOrder, null, null); |
| | | } catch (Exception e) { |
| | | log.error("推送企业微信消息失败:" + e.getMessage(), e); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | eamReportRepairService.updateById(eamReportRepair); |
| | | if (!ReportRepairEnum.COMPLETE.name().equals(eamRepairOrder.getRepairStatus())) { |
| | | //推送企业微信消息(流程完结不发送消息) |
| | | sendQywxTemplateCardMessage(eamRepairOrder, eamReportRepair, request); |
| | | try { |
| | | sendQywxTemplateCardMessage(eamRepairOrder, eamReportRepair, request); |
| | | } catch (Exception e) { |
| | | log.error("推送企业微信消息失败:" + e.getMessage(), e); |
| | | } |
| | | } |
| | | return eamRepairOrder; |
| | | } |