From bc3b37b1622091def1f6ee4c3eb3ff79499b3466 Mon Sep 17 00:00:00 2001 From: EricsHu <hrr145632> Date: 星期一, 19 六月 2023 10:19:14 +0800 Subject: [PATCH] 数据可视化 --- src/main/java/com/qxueyou/scc/exercise/service/impl/ExerciseSysMsgDealService.java | 36 ++++++++++++++++++------------------ 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/main/java/com/qxueyou/scc/exercise/service/impl/ExerciseSysMsgDealService.java b/src/main/java/com/qxueyou/scc/exercise/service/impl/ExerciseSysMsgDealService.java index 0220f43..ccee49e 100644 --- a/src/main/java/com/qxueyou/scc/exercise/service/impl/ExerciseSysMsgDealService.java +++ b/src/main/java/com/qxueyou/scc/exercise/service/impl/ExerciseSysMsgDealService.java @@ -37,7 +37,7 @@ // String groupId = msg.getUserProperties("groupId"); // String classId = msg.getUserProperties("classId"); // String actionType = msg.getUserProperties("actionType"); - // 练习不再发系统通知 by cyq 20160823 + // 缁冧範涓嶅啀鍙戠郴缁熼�氱煡 by cyq 20160823 //sendSysNotice(groupId, classId, actionType); } catch (Exception e) { @@ -47,14 +47,14 @@ ";groupId:" + msg.getUserProperties("groupId") + ";actionType:" + msg.getUserProperties("actionType") ; - log.error( businessId + " :更新练习系统消息发送失败:" + e , e); + log.error( businessId + " :鏇存柊缁冧範绯荤粺娑堟伅鍙戦�佸け璐�:" + e , e); onsExceptionLogService.doSaveExceptionLog(cfg.getConfigByEnv("ons-common-topic"), "SYS_EXER_SAVE", businessId , desp ); }*/ } /** - * 发送消息 + * 鍙戦�佹秷鎭� * @param groupId * @param classId * @param actionType @@ -75,11 +75,11 @@ extra.put("classId", classId); extra.put("className", cls.getName()); if ("new".equalsIgnoreCase(actionType)) { - extra.put("title", "有新的习题啦"); - content = cls.getName() + "班有新的习题哦,赶快去瞄瞄吧!"; + extra.put("title", "鏈夋柊鐨勪範棰樺暒"); + content = cls.getName() + "鐝湁鏂扮殑涔犻鍝︼紝璧跺揩鍘荤瀯鐬勫惂锛�"; } else if ("update".equalsIgnoreCase(actionType)) { - extra.put("title", "习题有更新啦"); - content = cls.getName() + "班习题有更新哦,赶快去瞄瞄吧!"; + extra.put("title", "涔犻鏈夋洿鏂板暒"); + content = cls.getName() + "鐝範棰樻湁鏇存柊鍝︼紝璧跺揩鍘荤瀯鐬勫惂锛�"; } // add cyq JSONObject androidParam = new JSONObject(); @@ -87,49 +87,49 @@ if (group.getType() == ExerciseGroup.TYPE_HOMEWORK) { extra.put("type", SysNoticeConfigMetadata.TYPE_EXERCISE_HOMEWORK); - androidParam.put("key_exercise_type_name", "家庭作业"); + androidParam.put("key_exercise_type_name", "瀹跺涵浣滀笟"); androidParam.put("key_exercise_list_url", "http://www.qxueyou.com/qxueyou/exercise/Exercise/homeWorkListNew"); androidParam.put("key_exercise_type", "1"); - iOSParam.put("Titlename", "家庭作业"); + iOSParam.put("Titlename", "瀹跺涵浣滀笟"); } else if (group.getType() == ExerciseGroup.TYPE_MOCK_EXAM) { extra.put("type", SysNoticeConfigMetadata.TYPE_EXERCISE_ANALOGY); - androidParam.put("key_exercise_type_name", "模拟考试"); + androidParam.put("key_exercise_type_name", "妯℃嫙鑰冭瘯"); androidParam.put("key_exercise_list_url", "http://www.qxueyou.com/qxueyou/exercise/Exercise/examsListNew"); androidParam.put("key_exercise_type", "4"); - iOSParam.put("Titlename", "模拟考试"); + iOSParam.put("Titlename", "妯℃嫙鑰冭瘯"); } else if (group.getType() == ExerciseGroup.TYPE_CHAPTER_ITEM) { extra.put("type", SysNoticeConfigMetadata.TYPE_EXERCISE_CHAPTER); - androidParam.put("key_exercise_type_name", "章节练习"); + androidParam.put("key_exercise_type_name", "绔犺妭缁冧範"); androidParam.put("key_exercise_list_url", "http://www.qxueyou.com/qxueyou/exercise/Exercise/chapterListNew"); androidParam.put("key_exercise_type", "6"); - iOSParam.put("Titlename", "章节练习"); + iOSParam.put("Titlename", "绔犺妭缁冧範"); } else if (group.getType() == ExerciseGroup.TYPE_EXERCISE_TOPIC) { extra.put("type", SysNoticeConfigMetadata.TYPE_EXERCISE_CHAPTER); - androidParam.put("key_exercise_type_name", "专项练习"); + androidParam.put("key_exercise_type_name", "涓撻」缁冧範"); androidParam.put("key_exercise_list_url", "http://www.qxueyou.com/qxueyou/exercise/Exercise/topicListNew"); androidParam.put("key_exercise_type", "9"); - iOSParam.put("Titlename", "专项练习"); + iOSParam.put("Titlename", "涓撻」缁冧範"); } else if (group.getType() == ExerciseGroup.TYPE_EXERCISE_FREE) { extra.put("type", SysNoticeConfigMetadata.TYPE_EXERCISE_FREEDOM); - androidParam.put("key_exercise_type_name", "自由练习"); + androidParam.put("key_exercise_type_name", "鑷敱缁冧範"); androidParam.put("key_exercise_list_url", "http://www.qxueyou.com/qxueyou/exercise/Exercise/freeListNew"); androidParam.put("key_exercise_type", "10"); - iOSParam.put("Titlename", "自由练习"); + iOSParam.put("Titlename", "鑷敱缁冧範"); } extra.put("androidParams", androidParam.toString()); extra.put("iosParams", iOSParam.toString()); if (StringUtils.isNotEmpty(content)) { - // 对消息接收人按每批最多20人分批发送 + // 瀵规秷鎭帴鏀朵汉鎸夋瘡鎵规渶澶�20浜哄垎鎵瑰彂閫� String[] receivers; int loop = (userIdList.size() + 19) / 20; for (int i = 0; i < loop; i ++) { -- Gitblit v1.8.0