|
@@ -1407,6 +1407,12 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
if(!businessFullName.contains("继续教育")||!businessFullName.contains("施工现场专业人员")){
|
|
|
bakStudyRecord.setOrderGoodsId(null);
|
|
|
}
|
|
|
+ String key = "PERIOD_VIDEO_Record:"+entity.getOrderGoodsId()+"-"+entity.getSectionId();
|
|
|
+ Long keyStatus = redisCache.getCacheObject(key);
|
|
|
+ if(Validator.isNotEmpty(keyStatus)&&keyStatus==100L){
|
|
|
+ throw new CustomException("禁止频繁提交",667);
|
|
|
+ }
|
|
|
+ redisCache.setCacheObject(key, 100L,2, TimeUnit.SECONDS);
|
|
|
// 学习无记录加一条学时审核记录
|
|
|
if ( baseMapper.selectStudyRecord(bakStudyRecord) < 1) {
|
|
|
UserPeriod userPeriod = new UserPeriod();
|