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
d36a13b5
Commit
d36a13b5
authored
Jul 11, 2020
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: BUG 29371
parent
9167be80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+20
-2
No files found.
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
d36a13b5
...
...
@@ -652,8 +652,17 @@ public class BLessonServiceImpl implements BLessonService {
}
bLesson
.
setDeleted
();
UserUtil
.
setCurrentMergeOperation
(
bLesson
);
// 保存日志
bLessonLogRepository
.
insertSelective
(
BLessonLog
.
generate
(
"关闭课程"
,
bLesson
.
getBusinessId
()));
//查询 当前资源共享状态
String
flag
=
bMessageRepository
.
getSycnValue
(
bLesson
.
getCorpId
());
if
(
LessonSycnEnum
.
OPEN
.
getCode
().
equals
(
flag
)){
BPLesson
bpLesson
=
new
BPLesson
();
bpLesson
.
setBusinessId
(
bLesson
.
getBusinessId
());
bpLesson
.
setReleaseState
(
ReleaseStateEnum
.
DELETE
.
getCode
());
bpLessonRepository
.
updateByPrimaryKeySelective
(
bpLesson
);
}
int
line
=
bLessonRepository
.
logicalDelete
(
bLesson
);
//int line = bLessonRepository.deleteByPrimaryKey(id);
return
new
PersistModel
(
line
,
MessageConstant
.
MESSAGE_ALERT_SUCCESS
);
}
...
...
@@ -693,8 +702,17 @@ public class BLessonServiceImpl implements BLessonService {
bLesson
.
setBusinessId
(
id
);
bLesson
.
setCloseDate
(
new
Date
());
UserUtil
.
setCurrentMergeOperation
(
bLesson
);
// 保存日志
bLessonLogRepository
.
insertSelective
(
BLessonLog
.
generate
(
"关闭课程"
,
bLesson
.
getBusinessId
()));
//查询 当前资源共享状态
String
flag
=
bMessageRepository
.
getSycnValue
(
bLesson
.
getCorpId
());
if
(
LessonSycnEnum
.
OPEN
.
getCode
().
equals
(
flag
)){
BPLesson
bpLesson
=
new
BPLesson
();
bpLesson
.
setBusinessId
(
bLesson
.
getBusinessId
());
bpLesson
.
setReleaseState
(
ReleaseStateEnum
.
CLOSED
.
getCode
());
bpLessonRepository
.
updateByPrimaryKeySelective
(
bpLesson
);
}
int
line
=
bLessonRepository
.
closeLesson
(
bLesson
);
//int line = bLessonRepository.deleteByPrimaryKey(id);
return
new
PersistModel
(
line
,
MessageConstant
.
MESSAGE_ALERT_SUCCESS
);
}
...
...
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