|
@@ -1,6 +1,7 @@
|
|
|
package cn.iocoder.yudao.module.system.service.notify;
|
|
|
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
+import cn.iocoder.yudao.framework.tenant.core.util.TenantUtils;
|
|
|
import cn.iocoder.yudao.module.system.controller.admin.notify.vo.message.NotifyMessageMyPageReqVO;
|
|
|
import cn.iocoder.yudao.module.system.controller.admin.notify.vo.message.NotifyMessagePageReqVO;
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.notify.NotifyMessageDO;
|
|
@@ -35,7 +36,7 @@ public class NotifyMessageServiceImpl implements NotifyMessageService {
|
|
|
.setTemplateType(template.getType()).setTemplateNickname(template.getNickname())
|
|
|
.setTemplateContent(templateContent).setTemplateParams(templateParams).setReadStatus(false).setBusinessType(Objects.nonNull(templateParams.get("businessType"))?String.valueOf(templateParams.get("businessType")):null)
|
|
|
.setBusinessId(Objects.nonNull(templateParams.get("businessId"))?String.valueOf(templateParams.get("businessId")):"");
|
|
|
- notifyMessageMapper.insert(message);
|
|
|
+ TenantUtils.execute(1L, () -> notifyMessageMapper.insert(message));
|
|
|
return message.getId();
|
|
|
}
|
|
|
|