Commit f143a4e2 authored by zhangqingle's avatar zhangqingle

修改奖励积分至讲师

parent 978cafe4
...@@ -600,7 +600,8 @@ public class BLessonServiceImpl implements BLessonService { ...@@ -600,7 +600,8 @@ public class BLessonServiceImpl implements BLessonService {
UserUtil.setCurrentMergeOperation(bLesson); UserUtil.setCurrentMergeOperation(bLesson);
int line = bLessonRepository.releaseLesson(bLesson); int line = bLessonRepository.releaseLesson(bLesson);
//查询该讲师发布课程获得积分数 //查询该讲师发布课程获得积分数
List<BReleaseValue> bReleaseValueList = bReleaseValueRepository.selectReleaseValueByPersonId(curUser); CurUser lecCurUser = new CurUser(bLesson.getCorpId(),bLesson.getLecturerId(),null,null);
List<BReleaseValue> bReleaseValueList = bReleaseValueRepository.selectReleaseValueByPersonId(lecCurUser);
//仅第一次发布获得积分 //仅第一次发布获得积分
if (ReleaseStateEnum.UNRELEASED.getCode().equals(bLesson.getReleaseState()) && bReleaseValueList != null && bReleaseValueList.size() > 0 && bReleaseValueList.get(0) != null) { if (ReleaseStateEnum.UNRELEASED.getCode().equals(bLesson.getReleaseState()) && bReleaseValueList != null && bReleaseValueList.size() > 0 && bReleaseValueList.get(0) != null) {
//增加用户积分详情 //增加用户积分详情
......
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