feat:REQ-1419 移除消息模板服务依赖

This commit is contained in:
zuoqinbo 2023-10-20 11:33:30 +08:00
parent d2be4df29d
commit 8343c6ea36

View File

@ -111,9 +111,9 @@ public class MessageService {
toPersonList.forEach(personId -> {
AccountRegister accountRegister = accountRegisterDao.lambdaQuery().eq(AccountRegister::getIsDelete, 0)
.eq(AccountRegister::getAccountId, personId)
.eq(AccountRegister::getAppType, appType).one();
.eq(AccountRegister::getAppType, appType.getCode()).one();
if (accountRegister == null || StringUtils.isEmpty(accountRegister.getImAccount())) {
log.warn("接收用户账户[" + personId + "],appType[" + appType + "],未注册IM账户!");
log.warn("接收用户账户[" + personId + "],appType[" + appType.getCode() + "],未注册IM账户!");
return;
}
toPersonImList.add(accountRegister.getImAccount());