|
@@ -457,22 +457,38 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
if((fullName.contains("继续教育")&&fullName.contains("施工现场专业人员"))||fullName.equals("继续教育一级建造师")){
|
|
|
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);
|
|
|
+ if (ObjectUtils.isNotNull(tenant) && tenant.getFastForwardSign() == 1){
|
|
|
+ throw new CustomException("视频学习时长不达标,"+(videoTime.longValue()-5-(DateUtils.getNowTime().longValue()-userPeriodStatusVo.getRecordStartTime().longValue())),5581);
|
|
|
+ }else {
|
|
|
+ throw new CustomException("视频学习时长不达标,"+(videoTime.longValue()-5-(DateUtils.getNowTime().longValue()-userPeriodStatusVo.getRecordStartTime().longValue())),558);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
else{
|
|
|
log.info("视频学习时长不达标"+JSON.toJSONString(bo));
|
|
|
- throw new CustomException("视频学习时长不达标,"+(videoTime.longValue()-5-(DateUtils.getNowTime().longValue()-photo.getCreateTime().longValue())),558);
|
|
|
+ if (ObjectUtils.isNotNull(tenant) && tenant.getFastForwardSign() == 1){
|
|
|
+ throw new CustomException("视频学习时长不达标,"+(videoTime.longValue()-5-(DateUtils.getNowTime().longValue()-userPeriodStatusVo.getRecordStartTime().longValue())),5581);
|
|
|
+ }else {
|
|
|
+ throw new CustomException("视频学习时长不达标,"+(videoTime.longValue()-5-(DateUtils.getNowTime().longValue()-photo.getCreateTime().longValue())),558);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
if(photoList.size()<num){
|
|
|
log.info("拍照次数不达标"+JSON.toJSONString(bo));
|
|
|
- throw new CustomException("拍照次数不达标",559);
|
|
|
+ if (ObjectUtils.isNotNull(tenant) && tenant.getFastForwardSign() == 1){
|
|
|
+ throw new CustomException("拍照次数不达标",5591);
|
|
|
+ }else {
|
|
|
+ throw new CustomException("拍照次数不达标",559);
|
|
|
+ }
|
|
|
}
|
|
|
}else{
|
|
|
log.info("拍照次数不达标"+JSON.toJSONString(bo));
|
|
|
- throw new CustomException("拍照次数不达标",559);
|
|
|
+ if (ObjectUtils.isNotNull(tenant) && tenant.getFastForwardSign() == 1){
|
|
|
+ throw new CustomException("拍照次数不达标",5591);
|
|
|
+ }else {
|
|
|
+ throw new CustomException("拍照次数不达标",559);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}else{
|