Commit 8c75a431 authored by liuyuanjun's avatar liuyuanjun

修改日志bug29369

parent abc624e2
......@@ -439,7 +439,9 @@ public class BLessonServiceImpl implements BLessonService {
}
} else {
//将课程的企业信息添加到 model (用于区分平台课程)
model.setCorpId(bLessonRepository.selectByPrimaryKey(model.getBusinessId()).getCorpId());
BLesson tempLesson = bLessonRepository.selectByPrimaryKey(model.getBusinessId());
model.setCorpId(tempLesson.getCorpId());
model.setReleaseState(tempLesson.getReleaseState());
UserUtil.setCurrentMergeOperation(model);
line = bLessonRepository.updateByPrimaryKeySelective(model);
if(!ReleaseStateEnum.UNRELEASED.getCode().equals(model.getReleaseState())){
......@@ -624,7 +626,9 @@ public class BLessonServiceImpl implements BLessonService {
bLesson.setDeleted();
UserUtil.setCurrentMergeOperation(bLesson);
// 保存日志
bLessonLogRepository.insertSelective(BLessonLog.generate("删除课程",bLesson.getBusinessId()));
if (!"0".equals(bLesson.getReleaseState())) {
bLessonLogRepository.insertSelective(BLessonLog.generate("删除课程",bLesson.getBusinessId()));
}
//查询 当前资源共享状态
String flag = bMessageRepository.getSycnValue(bLesson.getCorpId());
if(LessonSycnEnum.OPEN.getCode().equals(flag)){
......
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