|
|
@ -18,6 +18,7 @@ import lombok.AllArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
|
|
|
|
import org.springblade.core.secure.utils.AuthUtil; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
@ -58,6 +59,10 @@ public class MessageClient extends BladeController implements IMessageClient{ |
|
|
|
request.getTypes().forEach(type -> { |
|
|
|
request.getTypes().forEach(type -> { |
|
|
|
MessagePushRecordEntity entity = BeanUtil.copy(request,MessagePushRecordEntity.class); |
|
|
|
MessagePushRecordEntity entity = BeanUtil.copy(request,MessagePushRecordEntity.class); |
|
|
|
entity.setType(type); |
|
|
|
entity.setType(type); |
|
|
|
|
|
|
|
if(Func.isEmpty(AuthUtil.getUserId())) { |
|
|
|
|
|
|
|
entity.setCreateUser(request.getCreateUser()); |
|
|
|
|
|
|
|
entity.setCreateDept(request.getCreateDept()); |
|
|
|
|
|
|
|
} |
|
|
|
entity.setMessageId(messageId); |
|
|
|
entity.setMessageId(messageId); |
|
|
|
recordService.saveAndSend(entity); |
|
|
|
recordService.saveAndSend(entity); |
|
|
|
}); |
|
|
|
}); |
|
|
|