Commit 3e7cc6dc authored by zhangqingle's avatar zhangqingle

修改通知课程培训名不统一

parent c9bff9d4
...@@ -106,7 +106,7 @@ public class BDiscussServiceImpl implements BDiscussService { ...@@ -106,7 +106,7 @@ public class BDiscussServiceImpl implements BDiscussService {
BLesson bLesson = lessonRepository.selectByPrimaryKey(bDiscuss.getLessonId()); BLesson bLesson = lessonRepository.selectByPrimaryKey(bDiscuss.getLessonId());
String lessonType = LessonTypeEnum.LESSON.getCode().equals(bLesson.getLessonType()) ? "线上课程" : "线下培训"; String lessonType = LessonTypeEnum.LESSON.getCode().equals(bLesson.getLessonType()) ? "线上课程" : "线下培训";
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() +"\"的评论" );
// 发消息 // 发消息
// InfoTypeEnum.REPLY_DISCUSS.getvalue() // InfoTypeEnum.REPLY_DISCUSS.getvalue()
client.send(bNotice,InfoTypeEnum.REPLY_DISCUSS.getValue(), MessageEnum.HFPL.getName(),urlType); client.send(bNotice,InfoTypeEnum.REPLY_DISCUSS.getValue(), MessageEnum.HFPL.getName(),urlType);
......
...@@ -55,7 +55,7 @@ public class SendNoticeServiceImpl implements SendNoticeService { ...@@ -55,7 +55,7 @@ public class SendNoticeServiceImpl implements SendNoticeService {
String infoType = LessonTypeEnum.LESSON.getCode().equals(bLesson.getLessonType()) ? InfoTypeEnum.ONLINE_LESSON.getValue() : InfoTypeEnum.OFFLINE_TRAIN.getValue(); String infoType = LessonTypeEnum.LESSON.getCode().equals(bLesson.getLessonType()) ? InfoTypeEnum.ONLINE_LESSON.getValue() : InfoTypeEnum.OFFLINE_TRAIN.getValue();
bNotice.setInfoType(infoType); bNotice.setInfoType(infoType);
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(appointLessonDTO.getUserId()).getName() + "给您指派了" + lessonType +"“" + bLesson.getLessonName() +"”,请及时学习" ); bNotice.setInfoText(sysUserServiceImpl.getNameById(appointLessonDTO.getUserId()).getName() + "给您指派了" + lessonType +"\"" + bLesson.getLessonName() +"\",请及时学习" );
// 往智信平台发啊消息 // 往智信平台发啊消息
client.send(bNotice,InfoTypeEnum.REPLY_DISCUSS.getLable(),type,urlType); client.send(bNotice,InfoTypeEnum.REPLY_DISCUSS.getLable(),type,urlType);
} }
......
...@@ -74,7 +74,7 @@ public class MessageTask { ...@@ -74,7 +74,7 @@ public class MessageTask {
bNotice.setLessonId(bLesson.getBusinessId()); bNotice.setLessonId(bLesson.getBusinessId());
bNotice.setCorpId(bLesson.getCorpId()); bNotice.setCorpId(bLesson.getCorpId());
// 通知信息 // 通知信息
bNotice.setInfoText("“"+bLesson.getLessonName()+"”线下培训即将开始" ); bNotice.setInfoText("\""+bLesson.getLessonName()+"\"线下培训即将开始" );
// 往智信平台发啊消息 // 往智信平台发啊消息
client.send(bNotice,InfoTypeEnum.OFFLINE_TRAIN.getLable(),MessageEnum.PXJJKS.getName(),UrlTypeEnum.TRAIN.getName()); client.send(bNotice,InfoTypeEnum.OFFLINE_TRAIN.getLable(),MessageEnum.PXJJKS.getName(),UrlTypeEnum.TRAIN.getName());
}); });
......
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