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
b6e29372
Commit
b6e29372
authored
Jan 15, 2020
by
lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提示
parent
8d532955
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
BDiscussServiceImpl.java
...t/business/bdiscuss/service/impl/BDiscussServiceImpl.java
+8
-0
ResultServiceEnums.java
...main/java/org/rcisoft/core/result/ResultServiceEnums.java
+1
-0
No files found.
src/main/java/org/rcisoft/business/bdiscuss/service/impl/BDiscussServiceImpl.java
View file @
b6e29372
...
@@ -19,6 +19,8 @@ import org.rcisoft.common.util.outClient.MTMicroappApiRequestClient;
...
@@ -19,6 +19,8 @@ import org.rcisoft.common.util.outClient.MTMicroappApiRequestClient;
import
org.rcisoft.common.util.outClient.MTNotificationApiRequestClient
;
import
org.rcisoft.common.util.outClient.MTNotificationApiRequestClient
;
import
org.rcisoft.core.enums.MessageEnum
;
import
org.rcisoft.core.enums.MessageEnum
;
import
org.rcisoft.core.enums.UrlTypeEnum
;
import
org.rcisoft.core.enums.UrlTypeEnum
;
import
org.rcisoft.core.exception.ServiceException
;
import
org.rcisoft.core.result.ResultServiceEnums
;
import
org.rcisoft.core.util.IdGen
;
import
org.rcisoft.core.util.IdGen
;
import
org.rcisoft.core.util.UserUtil
;
import
org.rcisoft.core.util.UserUtil
;
import
org.rcisoft.core.aop.PageUtil
;
import
org.rcisoft.core.aop.PageUtil
;
...
@@ -105,6 +107,9 @@ public class BDiscussServiceImpl implements BDiscussService {
...
@@ -105,6 +107,9 @@ public class BDiscussServiceImpl implements BDiscussService {
bNotice
.
setCorpId
(
curUser
.
getCorpId
());
bNotice
.
setCorpId
(
curUser
.
getCorpId
());
// 获取课程信息
// 获取课程信息
BLesson
bLesson
=
lessonRepository
.
selectByPrimaryKey
(
bDiscuss
.
getLessonId
());
BLesson
bLesson
=
lessonRepository
.
selectByPrimaryKey
(
bDiscuss
.
getLessonId
());
if
(
bLesson
==
null
){
throw
new
ServiceException
(
ResultServiceEnums
.
LESSON_NOT_EXISTA
);
}
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
()
+
"\"的评论"
);
...
@@ -128,6 +133,9 @@ public class BDiscussServiceImpl implements BDiscussService {
...
@@ -128,6 +133,9 @@ public class BDiscussServiceImpl implements BDiscussService {
bNotice
.
setCorpId
(
curUser
.
getCorpId
());
bNotice
.
setCorpId
(
curUser
.
getCorpId
());
// 获取课程信息
// 获取课程信息
BLesson
bLesson
=
lessonRepository
.
selectByPrimaryKey
(
bDiscuss
.
getLessonId
());
BLesson
bLesson
=
lessonRepository
.
selectByPrimaryKey
(
bDiscuss
.
getLessonId
());
if
(
bLesson
==
null
){
throw
new
ServiceException
(
ResultServiceEnums
.
LESSON_NOT_EXISTA
);
}
bNotice
.
setRecipientIds
(
new
ArrayList
<>(
Arrays
.
asList
(
bLesson
.
getLecturerId
())));
bNotice
.
setRecipientIds
(
new
ArrayList
<>(
Arrays
.
asList
(
bLesson
.
getLecturerId
())));
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
();
...
...
src/main/java/org/rcisoft/core/result/ResultServiceEnums.java
View file @
b6e29372
...
@@ -259,6 +259,7 @@ public enum ResultServiceEnums {
...
@@ -259,6 +259,7 @@ public enum ResultServiceEnums {
NOT_FILE
(
159
,
"未选择上传文件"
),
NOT_FILE
(
159
,
"未选择上传文件"
),
VALUE_HAVE_ERROR
(
160
,
"积分异常,请联系管理员"
),
VALUE_HAVE_ERROR
(
160
,
"积分异常,请联系管理员"
),
NOT_DOWNLOAD_FILE
(
161
,
"无下载文件"
),
NOT_DOWNLOAD_FILE
(
161
,
"无下载文件"
),
ZHIXIN_ERROR
(
162
,
"调用智信接口异常"
),
;
;
private
Integer
code
;
private
Integer
code
;
...
...
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