cuilei
20 小时以前 699295ce3e0e1116d1fc20f0fae89b66613bbacf
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/service/impl/EamWeekMaintenanceOrderServiceImpl.java
@@ -153,7 +153,11 @@
                //更新设备保养状态
                eamEquipmentExtendService.updateEquipmentMaintenanceStatus(order.getEquipmentId(), EquipmentMaintenanceStatus.UNDER_MAINTENANCE.name());
                //推送企业微信消息
                try {
                sendQywxTemplateCardMessage(order, null);
                } catch (Exception e) {
                    log.error("推送企业微信消息失败:" + e.getMessage(), e);
                }
                return result.isSuccess();
            }
        }
@@ -345,7 +349,11 @@
            //更新设备保养状态
            eamEquipmentExtendService.updateEquipmentMaintenanceStatus(entity.getEquipmentId(), EquipmentMaintenanceStatus.UNDER_MAINTENANCE.name());
            //推送企业微信消息
            try {
            sendQywxTemplateCardMessage(entity, null);
            } catch (Exception e) {
                log.error("推送企业微信消息失败:" + e.getMessage(), e);
            }
            return result.isSuccess();
        }
        return true;
@@ -658,7 +666,11 @@
        eamWeekMaintenanceOrderMapper.updateById(entity);
        //推送企业微信消息,工单完结不发送
        if (!WeekMaintenanceStatusEnum.COMPLETE.name().equals(entity.getMaintenanceStatus())) {
            try {
            sendQywxTemplateCardMessage(entity, request);
            } catch (Exception e) {
                log.error("推送企业微信消息失败:" + e.getMessage(), e);
            }
        }
        return entity;
    }