From 045a8bad31cbf491741a0f962809c3e5b35a853f Mon Sep 17 00:00:00 2001 From: tyty Date: Thu, 3 Aug 2023 16:51:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E6=8E=A8=E9=80=81=E9=A2=84?= =?UTF-8?q?=E8=AD=A6=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/hnac/hzims/spare/aspect/LimitRemindAspect.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/aspect/LimitRemindAspect.java b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/aspect/LimitRemindAspect.java index e8c5d55..981f9f7 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/aspect/LimitRemindAspect.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/aspect/LimitRemindAspect.java @@ -171,9 +171,9 @@ public class LimitRemindAspect { private void warningPush(String alert, User pusher,Long warehouseId) { MessagePushRecordDto message = new MessagePushRecordDto(); - message.setBusinessClassify("business"); - message.setBusinessKey(MessageConstants.BusinessClassifyEnum.ASSETS.getKey()); - message.setSubject(MessageConstants.BusinessClassifyEnum.ASSETS.getDescription()); + message.setBusinessClassify(MessageConstants.BusinessClassifyEnum.ASSETS.getKey()); + message.setBusinessKey("资产预警"); + message.setSubject("资产预警"); message.setTaskId(warehouseId); message.setTenantId("200000"); message.setTypes(Arrays.asList(MessageConstants.APP_PUSH, MessageConstants.WS_PUSH)); @@ -191,7 +191,7 @@ public class LimitRemindAspect { } message.setPusher(userId.toString()); message.setPusherName(pusher.getName()); - message.setAccount(pusher.getAccount()); + message.setAccount(pusher.getId().toString()); message.setCreateUser(userId); messageClient.sendMessage(message);