Commit 2d8cd3c4 authored by luzhuang's avatar luzhuang

评论通知url

parent 59ec6e0a
...@@ -108,7 +108,8 @@ public class BDiscussServiceImpl implements BDiscussService { ...@@ -108,7 +108,8 @@ public class BDiscussServiceImpl implements BDiscussService {
String urlType = LessonTypeEnum.LESSON.getCode().equals(bLesson.getLessonType()) ? UrlTypeEnum.LESSON.getName() : UrlTypeEnum.TRAIN.getName(); String urlType = LessonTypeEnum.LESSON.getCode().equals(bLesson.getLessonType()) ? UrlTypeEnum.LESSON.getName() : UrlTypeEnum.TRAIN.getName();
bNotice.setInfoText(sysUserServiceImpl.getNameById(bDiscuss.getStudentId()).getName() + "回复了您在" + lessonType +"[" + bLesson.getLessonName() +"]的评论" ); bNotice.setInfoText(sysUserServiceImpl.getNameById(bDiscuss.getStudentId()).getName() + "回复了您在" + lessonType +"[" + bLesson.getLessonName() +"]的评论" );
// 发消息 // 发消息
client.send(bNotice,InfoTypeEnum.REPLY_DISCUSS.getLable(), MessageEnum.HFPL.getName(),urlType); // InfoTypeEnum.REPLY_DISCUSS.getvalue()
client.send(bNotice,InfoTypeEnum.REPLY_DISCUSS.getValue(), MessageEnum.HFPL.getName(),urlType);
} }
//评论课程 //评论课程
List<BMessage> bMessageListFBPL = bMessageRepository.queryByNameAndCorp("FBPL",curUser.getCorpId()); List<BMessage> bMessageListFBPL = bMessageRepository.queryByNameAndCorp("FBPL",curUser.getCorpId());
...@@ -129,7 +130,8 @@ public class BDiscussServiceImpl implements BDiscussService { ...@@ -129,7 +130,8 @@ public class BDiscussServiceImpl implements BDiscussService {
String urlType = LessonTypeEnum.LESSON.getCode().equals(bLesson.getLessonType()) ? UrlTypeEnum.LESSON.getName() : UrlTypeEnum.TRAIN.getName(); String urlType = LessonTypeEnum.LESSON.getCode().equals(bLesson.getLessonType()) ? UrlTypeEnum.LESSON.getName() : UrlTypeEnum.TRAIN.getName();
bNotice.setInfoText(sysUserServiceImpl.getNameById(bDiscuss.getStudentId()).getName() + "评论了您主讲的" + lessonType +"\"" + bLesson.getLessonName()+"\"" ); bNotice.setInfoText(sysUserServiceImpl.getNameById(bDiscuss.getStudentId()).getName() + "评论了您主讲的" + lessonType +"\"" + bLesson.getLessonName()+"\"" );
// 发消息 // 发消息
client.send(bNotice,InfoTypeEnum.REPLY_DISCUSS.getLable(), MessageEnum.FBPL.getName(),urlType); // InfoTypeEnum.REPLY_DISCUSS.getvalue()
client.send(bNotice,InfoTypeEnum.REPLY_DISCUSS.getValue(), MessageEnum.FBPL.getName(),urlType);
} }
//增加操作 //增加操作
UserUtil.setCurrentPersistOperation(bDiscuss); UserUtil.setCurrentPersistOperation(bDiscuss);
......
...@@ -170,6 +170,9 @@ public class MTNotificationApiRequestClient { ...@@ -170,6 +170,9 @@ public class MTNotificationApiRequestClient {
}else if ("EXAM".equals(urlType)){ }else if ("EXAM".equals(urlType)){
noticePropertiesUrl = this.noticeUrlExam; noticePropertiesUrl = this.noticeUrlExam;
} }
if("REPLY_DISCUSS".equals(noticeTitle))
noticePropertiesUrl = noticePropertiesUrl+"&notice=2";
String url = noticePropertiesUrl + "&from=zx"; String url = noticePropertiesUrl + "&from=zx";
final String finalNoticeType = noticeType; final String finalNoticeType = noticeType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment