|
@@ -911,7 +911,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
//记录学时审核
|
|
|
Long periodId = null;
|
|
|
// 学习无记录加一条学时审核记录
|
|
|
- if (baseMapper.selectStudyRecord(entity) < 1) {
|
|
|
+ if (baseMapper.selectStudyRecord(entity) < 1L) {
|
|
|
UserPeriod userPeriod = new UserPeriod();
|
|
|
userPeriod.setUserId(entity.getUserId());
|
|
|
userPeriod.setCourseId(entity.getCourseId());
|
|
@@ -923,8 +923,6 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
userPeriod.setModuleId(entity.getModuleId());
|
|
|
userPeriod.setChapterId(entity.getChapterId());
|
|
|
userPeriod.setGradeId(entity.getGradeId());
|
|
|
- log.error("学时记录插入"+JSON.toJSONString(userPeriod));
|
|
|
- iUserPeriodService.save(userPeriod);
|
|
|
periodId = userPeriod.getId();
|
|
|
UserPeriodStatus userPeriodStatusAddBo = new UserPeriodStatus();
|
|
|
userPeriodStatusAddBo.setPeriodStatus(1);
|