|
@@ -1265,6 +1265,12 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
if(Validator.isEmpty(courseId)){
|
|
|
throw new CustomException("课程定位错误");
|
|
|
}
|
|
|
+ String key = "SYNC_SEVEN_Record:"+orderGoodsId;
|
|
|
+ Long keyStatus = redisCache.getCacheObject(key);
|
|
|
+ if(Validator.isNotEmpty(keyStatus)&&keyStatus==100L){
|
|
|
+ return 100;
|
|
|
+ }
|
|
|
+ redisCache.setCacheObject(key, 100L,5, TimeUnit.SECONDS);
|
|
|
LambdaQueryWrapper<UserStudyRecord> lqw = Wrappers.lambdaQuery();
|
|
|
lqw.eq(UserStudyRecord::getOrderGoodsId, userStudyRecord.getOrderGoodsId());
|
|
|
lqw.eq(UserStudyRecord::getGradeId, userStudyRecord.getGradeId());
|
|
@@ -1324,6 +1330,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
newOrderGoods.setSevenClassStatus(2);
|
|
|
newOrderGoods.setUpdateTime(DateUtils.getNowTime());
|
|
|
iOrderGoodsService.updateById(newOrderGoods);
|
|
|
+ redisCache.deleteObject(key);
|
|
|
return 2;
|
|
|
}
|
|
|
|