Commit 8c75a431 authored by liuyuanjun's avatar liuyuanjun

修改日志bug29369

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