From d1ccf4547ec5278aad95a965eb72116cddc613dd Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Tue, 16 Jan 2024 11:38:45 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=908.1.0=E3=80=91=E3=80=90message?= =?UTF-8?q?=E3=80=91=E6=9B=B4=E6=96=B0=E6=B6=88=E6=81=AF=E5=8F=91=E9=80=81?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sys/api/pojo/message/MessageSendToSocketDTO.java | 8 ++++++++ .../sys/modular/message/factory/MessageFactory.java | 1 + 2 files changed, 9 insertions(+) diff --git a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/pojo/message/MessageSendToSocketDTO.java b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/pojo/message/MessageSendToSocketDTO.java index ee8950e1b..ead95398e 100644 --- a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/pojo/message/MessageSendToSocketDTO.java +++ b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/pojo/message/MessageSendToSocketDTO.java @@ -3,6 +3,8 @@ package cn.stylefeng.roses.kernel.sys.api.pojo.message; import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription; import lombok.Data; +import java.util.Date; + /** * 发送到ws时候用的传输bean * @@ -71,4 +73,10 @@ public class MessageSendToSocketDTO { @ChineseDescription("业务类型(根据业务id和业务类型可以确定业务数据)") private String businessType; + /** + * 消息发送时间 + */ + @ChineseDescription("消息发送时间") + private Date messageSendTime; + } diff --git a/kernel-s-system/system-business-portal/src/main/java/cn/stylefeng/roses/kernel/sys/modular/message/factory/MessageFactory.java b/kernel-s-system/system-business-portal/src/main/java/cn/stylefeng/roses/kernel/sys/modular/message/factory/MessageFactory.java index 23c8d4eab..2b450beb0 100644 --- a/kernel-s-system/system-business-portal/src/main/java/cn/stylefeng/roses/kernel/sys/modular/message/factory/MessageFactory.java +++ b/kernel-s-system/system-business-portal/src/main/java/cn/stylefeng/roses/kernel/sys/modular/message/factory/MessageFactory.java @@ -83,6 +83,7 @@ public class MessageFactory { dto.setPriorityLevel(sysMessage.getPriorityLevel()); dto.setBusinessId(sysMessage.getBusinessId()); dto.setBusinessType(sysMessage.getBusinessType()); + dto.setMessageSendTime(sysMessage.getMessageSendTime()); messageSendToSocketDTOS.add(dto); }