Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李丛阳
education
Commits
2d8cd3c4
Commit
2d8cd3c4
authored
Jan 10, 2020
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评论通知url
parent
59ec6e0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
BDiscussServiceImpl.java
...t/business/bdiscuss/service/impl/BDiscussServiceImpl.java
+4
-2
MTNotificationApiRequestClient.java
...common/util/outClient/MTNotificationApiRequestClient.java
+3
-0
No files found.
src/main/java/org/rcisoft/business/bdiscuss/service/impl/BDiscussServiceImpl.java
View file @
2d8cd3c4
...
@@ -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
);
...
...
src/main/java/org/rcisoft/common/util/outClient/MTNotificationApiRequestClient.java
View file @
2d8cd3c4
...
@@ -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
+
"¬ice=2"
;
String
url
=
noticePropertiesUrl
+
"&from=zx"
;
String
url
=
noticePropertiesUrl
+
"&from=zx"
;
final
String
finalNoticeType
=
noticeType
;
final
String
finalNoticeType
=
noticeType
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment