Commit abc624e2 authored by liuyuanjun's avatar liuyuanjun

修改bug'29455

parent d74cb813
......@@ -447,12 +447,14 @@ public class BLessonServiceImpl implements BLessonService {
String flag = bMessageRepository.getSycnValue(curUser.getCorpId());
//开启共享状态 编辑课程时 添加日志
if(LessonSycnEnum.OPEN.getCode().equals(flag) && LessonTypeEnum.LESSON.getCode().equals(model.getLessonType())){
// 保存日志
bLessonLogRepository.insertSelective(BLessonLog.generate("编辑课程",model.getBusinessId()));
// 同步 资源共享 更新 缓存课程 表
BPLesson bpModel = new BPLesson();
BeanUtil.copyProperties(model,bpModel);
bpLessonRepository.updateByPrimaryKeySelective(bpModel);
// 保存日志(只有不是平台课程才可以执行下面的操作)
if (!"###".equals(model.getCorpId())) {
bLessonLogRepository.insertSelective(BLessonLog.generate("编辑课程",model.getBusinessId()));
// 同步 资源共享 更新 缓存课程 表
BPLesson bpModel = new BPLesson();
BeanUtil.copyProperties(model,bpModel);
bpLessonRepository.updateByPrimaryKeySelective(bpModel);
}
}
}
//若培训结束时间改变 修改学生签到状态
......
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