|
@@ -1313,6 +1313,17 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
if(Validator.isEmpty(orderGoodsId)||Validator.isEmpty(userId)){
|
|
|
throw new CustomException("参数错误");
|
|
|
}
|
|
|
+ ClassGradeUser gradeOgUser = iClassGradeUserService.getOne(new LambdaQueryWrapper<ClassGradeUser>()
|
|
|
+ .eq(ClassGradeUser::getOrderGoodsId, orderGoodsId)
|
|
|
+ .eq(ClassGradeUser::getStatus, 1)
|
|
|
+ .last("limit 1"));
|
|
|
+ if(Validator.isEmpty(gradeOgUser)){
|
|
|
+ throw new CustomException("参数错误");
|
|
|
+ }
|
|
|
+ if(Validator.isEmpty(gradeOgUser.getOfficialStatus())||gradeOgUser.getOfficialStatus()!=1){
|
|
|
+ throw new CustomException("信息推送不成功,无法操作");
|
|
|
+ }
|
|
|
+
|
|
|
OrderGoods newOrderGoods = iOrderGoodsService.getOne(new LambdaQueryWrapper<OrderGoods>().eq(OrderGoods::getOrderGoodsId, orderGoodsId));
|
|
|
if(newOrderGoods.getSevenClassStatus()==1||newOrderGoods.getSevenClassStatus()==2||newOrderGoods.getSevenClassStatus()==3){
|
|
|
return 0;
|