From 2753a76c0407fbc7158f1ad4fd0ce08963c79fa7 Mon Sep 17 00:00:00 2001 From: ty <1577900710@qq.com> Date: Mon, 1 Apr 2024 16:49:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AD=E4=BF=A1=E5=A4=9A=E4=BA=BA=E6=8E=A8?= =?UTF-8?q?=E9=80=81=EF=BC=8C=E4=BF=9D=E5=AD=98=E5=A4=9A=E6=9D=A1=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/hnac/hzims/message/fegin/MessageClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hzims-service/message/src/main/java/com/hnac/hzims/message/fegin/MessageClient.java b/hzims-service/message/src/main/java/com/hnac/hzims/message/fegin/MessageClient.java index 17a5914..1ad57a4 100644 --- a/hzims-service/message/src/main/java/com/hnac/hzims/message/fegin/MessageClient.java +++ b/hzims-service/message/src/main/java/com/hnac/hzims/message/fegin/MessageClient.java @@ -180,13 +180,13 @@ public class MessageClient extends BladeController implements IMessageClient{ @PostMapping(SEND_SMS_IMMEDIATELY_MSG) public R sendSmsImmediatelyMsg(@RequestBody SmsImmediatelyPushDTO smsImmediatelyPushDTO) { try { - MessagePushRecordEntity record = BeanUtil.copy(smsImmediatelyPushDTO, MessagePushRecordEntity.class); - record.setMessageId(IdWorker.getId()); for (Long pushId : Func.toLongList(",", smsImmediatelyPushDTO.getPusher())) { User user = UserCache.getUser(pushId); if (ObjectUtil.isEmpty(user)||ObjectUtil.isEmpty(user.getPhone())){ continue; } + MessagePushRecordEntity record = BeanUtil.copy(smsImmediatelyPushDTO, MessagePushRecordEntity.class); + record.setMessageId(IdWorker.getId()); record.setPusherName(user.getRealName()); record.setPusher(pushId.toString()); record.setPushType(MessageConstants.IMMEDIATELY);