diff --git a/src/main/java/io/v/nutz/zhgh/msgNotify/MsgNotifyController.java b/src/main/java/io/v/nutz/zhgh/msgNotify/MsgNotifyController.java index 48add0c..d008294 100644 --- a/src/main/java/io/v/nutz/zhgh/msgNotify/MsgNotifyController.java +++ b/src/main/java/io/v/nutz/zhgh/msgNotify/MsgNotifyController.java @@ -174,7 +174,7 @@ public class MsgNotifyController { List list = msgNotifyService.getUserByRoleIds(msgNotify.getModule(), msgNotify.getTeacherMeetingId(), msgNotify.getRoleIds()); if (flag) { List 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 userScopes = msgNotifyService.getUserScopes(msgNotify.getActivityGroupId()); if (flag) { List 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 = dao.query(User.class, Cnd.where("id", "in", users)); List 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 loginNames = redisService.lrange(existsLoginNameRedisKey, 0, -1); List 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) {