|
@@ -374,7 +374,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
if(courseSectionVo.getSectionType()==1&&Validator.isNotEmpty(bo.getStatus())&&bo.getStatus()==1){
|
|
|
if(Validator.isNotEmpty(goodsVo)){
|
|
|
if(Validator.isNotEmpty(fullName)){
|
|
|
- if(fullName.equals("继续教育一级建造师")||fullName.equals("继续教育二级建造师")||fullName.equals("继续教育二级造价师")||fullName.equals("考前培训七大员施工现场专业人员")||(fullName.contains("继续教育")&&fullName.contains("施工现场专业人员"))){
|
|
|
+ if(fullName.equals("继续教育二级建造师")||fullName.equals("继续教育二级造价师")||fullName.equals("考前培训七大员施工现场专业人员")||(fullName.contains("继续教育")&&fullName.contains("施工现场专业人员"))){
|
|
|
if(Validator.isNotEmpty(courseSectionVo.getDurationTime())||Validator.isNotEmpty(bo.getVideoCurrentTime())){
|
|
|
Long videoTime = 0L;
|
|
|
if(Validator.isNotEmpty(courseSectionVo.getDurationTime())&&courseSectionVo.getDurationTime().longValue()>0){
|
|
@@ -393,9 +393,6 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
num = (int)Math.floor(videoTime.intValue()/(45*60))+1;
|
|
|
}
|
|
|
}
|
|
|
- if(fullName.equals("继续教育一级建造师")){
|
|
|
- num = 1;
|
|
|
- }
|
|
|
UserPeriodQueryBo userPeriodQueryBo2 = new UserPeriodQueryBo();
|
|
|
userPeriodQueryBo2.setSectionId(bo.getSectionId());
|
|
|
userPeriodQueryBo2.setCourseId(bo.getCourseId());
|
|
@@ -418,7 +415,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
if(fullName.contains("继续教育")&&fullName.contains("施工现场专业人员")){
|
|
|
if((DateUtils.getNowTime().longValue()-userPeriodStatusVo.getRecordStartTime().longValue())<(videoTime.longValue()-5)){
|
|
|
log.info("视频学习时长不达标"+JSON.toJSONString(bo));
|
|
|
- throw new CustomException("视频学习时长不达标,"+(videoTime.longValue()-5-(DateUtils.getNowTime().longValue()-userPeriodStatusVo.getRecordStartTime().longValue())),558);
|
|
|
+ throw new CustomException("视频学习时长不达标,"+(videoTime.longValue()-5-(DateUtils.getNowTime().longValue()-photo.getCreateTime().longValue())),558);
|
|
|
}
|
|
|
}else{
|
|
|
log.info("视频学习时长不达标"+JSON.toJSONString(bo));
|
|
@@ -1662,7 +1659,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
throw new CustomException("禁止频繁提交",667);
|
|
|
}
|
|
|
}
|
|
|
- redisCache.setCacheObject(key, 100L,3, TimeUnit.SECONDS);
|
|
|
+ redisCache.setCacheObject(key, 100L,2, TimeUnit.SECONDS);
|
|
|
|
|
|
if ( baseMapper.selectStudyRecord(bakStudyRecord) < 1) {
|
|
|
UserPeriod userPeriod = new UserPeriod();
|
|
@@ -1918,10 +1915,6 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
|
|
|
@Override
|
|
|
public List<SubjectStudyRecordVo> listDangAnSubject(SubjectStudyRecordQueryBo bo) {
|
|
|
- String tenantId = ServletUtils.getRequest().getHeader("TenantId");
|
|
|
- if (StringUtils.isNotBlank(tenantId)){
|
|
|
- bo.setTenantId(Long.valueOf(tenantId));
|
|
|
- }
|
|
|
return this.baseMapper.listDangAnSubject(bo);
|
|
|
}
|
|
|
|