This commit is contained in:
2026-03-02 14:30:47 +08:00
parent ed9a6c0c70
commit e12883e50d
@@ -174,7 +174,7 @@ public class MsgNotifyController {
List<NutMap> list = msgNotifyService.getUserByRoleIds(msgNotify.getModule(), msgNotify.getTeacherMeetingId(), msgNotify.getRoleIds());
if (flag) {
List<String> loginNames = list.stream().map(v -> v.getString("loginName")).toList();
msgNotifyService.sendMsg2(msgNotify.getSendTypes(), loginNames, msgNotify.getContent(),msgNotify.getUrl(),msgNotify.getTitle());
msgNotifyService.sendMsg2(msgNotify.getSendTypes(), loginNames, msgNotify.getContent(),msgNotify.getTitle(),msgNotify.getUrl());
}
list.forEach(v -> {
if (flag) {
@@ -189,7 +189,7 @@ public class MsgNotifyController {
List<NutMap> userScopes = msgNotifyService.getUserScopes(msgNotify.getActivityGroupId());
if (flag) {
List<String> loginNames = userScopes.stream().map(v -> v.getString("loginName")).toList();
msgNotifyService.sendMsg2(msgNotify.getSendTypes(), loginNames, msgNotify.getContent(),msgNotify.getUrl(),msgNotify.getTitle());
msgNotifyService.sendMsg2(msgNotify.getSendTypes(), loginNames, msgNotify.getContent(),msgNotify.getTitle(),msgNotify.getUrl());
}
userScopes.forEach(v -> {
if (flag) {
@@ -203,7 +203,7 @@ public class MsgNotifyController {
if (flag) {
List<User> user = dao.query(User.class, Cnd.where("id", "in", users));
List<String> loginNames = user.stream().map(User::getLoginname).toList();
msgNotifyService.sendMsg2(msgNotify.getSendTypes(), loginNames, msgNotify.getContent(),msgNotify.getUrl(),msgNotify.getTitle());
msgNotifyService.sendMsg2(msgNotify.getSendTypes(), loginNames, msgNotify.getContent(),msgNotify.getTitle(),msgNotify.getUrl());
}
for (String u : users) {
if (flag) {
@@ -218,7 +218,7 @@ public class MsgNotifyController {
List<String> loginNames = redisService.lrange(existsLoginNameRedisKey, 0, -1);
List<User> userList = dao.query(User.class, Cnd.where("loginname", "in", loginNames));
msgNotifyService.sendMsg2(msgNotify.getSendTypes(), loginNames, msgNotify.getContent(),msgNotify.getUrl(),msgNotify.getTitle());
msgNotifyService.sendMsg2(msgNotify.getSendTypes(), loginNames, msgNotify.getContent(),msgNotify.getTitle(),msgNotify.getUrl());
msgNotify.setSendTime(DateUtil.getDateTime());
for (User u : userList) {