|
|
@ -180,13 +180,13 @@ public class MessageClient extends BladeController implements IMessageClient{ |
|
|
|
@PostMapping(SEND_SMS_IMMEDIATELY_MSG) |
|
|
|
@PostMapping(SEND_SMS_IMMEDIATELY_MSG) |
|
|
|
public R<Boolean> sendSmsImmediatelyMsg(@RequestBody SmsImmediatelyPushDTO smsImmediatelyPushDTO) { |
|
|
|
public R<Boolean> sendSmsImmediatelyMsg(@RequestBody SmsImmediatelyPushDTO smsImmediatelyPushDTO) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
MessagePushRecordEntity record = BeanUtil.copy(smsImmediatelyPushDTO, MessagePushRecordEntity.class); |
|
|
|
|
|
|
|
record.setMessageId(IdWorker.getId()); |
|
|
|
|
|
|
|
for (Long pushId : Func.toLongList(",", smsImmediatelyPushDTO.getPusher())) { |
|
|
|
for (Long pushId : Func.toLongList(",", smsImmediatelyPushDTO.getPusher())) { |
|
|
|
User user = UserCache.getUser(pushId); |
|
|
|
User user = UserCache.getUser(pushId); |
|
|
|
if (ObjectUtil.isEmpty(user)||ObjectUtil.isEmpty(user.getPhone())){ |
|
|
|
if (ObjectUtil.isEmpty(user)||ObjectUtil.isEmpty(user.getPhone())){ |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
MessagePushRecordEntity record = BeanUtil.copy(smsImmediatelyPushDTO, MessagePushRecordEntity.class); |
|
|
|
|
|
|
|
record.setMessageId(IdWorker.getId()); |
|
|
|
record.setPusherName(user.getRealName()); |
|
|
|
record.setPusherName(user.getRealName()); |
|
|
|
record.setPusher(pushId.toString()); |
|
|
|
record.setPusher(pushId.toString()); |
|
|
|
record.setPushType(MessageConstants.IMMEDIATELY); |
|
|
|
record.setPushType(MessageConstants.IMMEDIATELY); |
|
|
|