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 a28ef9e..12599a1 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); diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java index ae6f915..75c2498 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java @@ -176,9 +176,12 @@ public class ImsDutyGroupServiceImpl extends BaseServiceImpl