From a84e3e7b4e8e0d1efb588c5507a9b346c656ab6f Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Thu, 13 Jun 2024 19:49:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=97=A5=E5=B8=B8=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4=E4=BB=BB=E5=8A=A1=E9=80=BE=E6=9C=9F=E6=8F=90=E9=86=92?= =?UTF-8?q?=E5=8F=AA=E6=8F=90=E9=86=92=E6=9C=AC=E7=BA=A7=E6=9C=BA=E6=9E=84?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=BB=8F=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maintenance/scheduled/MaintenanceTaskRemindHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/scheduled/MaintenanceTaskRemindHandler.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/scheduled/MaintenanceTaskRemindHandler.java index 410d924..68d0739 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/scheduled/MaintenanceTaskRemindHandler.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/scheduled/MaintenanceTaskRemindHandler.java @@ -83,7 +83,7 @@ public class MaintenanceTaskRemindHandler { request.setCreateUser(taskEntity.getCreateUser()); request.setTenantId(CommonConstant.TENANT_ID); R sendFlag = messageClient.sendAppAndWsMsgByUsers(request); - if(!sendFlag.isSuccess() || sendFlag.getData() == null) { + if(!sendFlag.isSuccess()) { XxlJobLogger.log(taskEntity.getId() +"执行人消息推送失败!"); } // 任务执行人发送短信 @@ -92,7 +92,7 @@ public class MaintenanceTaskRemindHandler { request.setUserIds(listR.getData().stream().map(User::getId).map(String::valueOf).collect(Collectors.joining(","))); request.setContent("有一条待执行的日常维护任务【"+taskEntity.getTitle()+"】即将于"+ DateUtil.format(taskEntity.getPlanEndTime(),DateUtil.PATTERN_DATETIME) +"过期,请确认。"); R result = messageClient.sendAppAndWsMsgByUsers(request); - if(!result.isSuccess() || result.getData() == null) { + if(!result.isSuccess()) { XxlJobLogger.log(taskEntity.getId() +"执行人消息推送失败!"); } }