|
@@ -849,7 +849,7 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
|
|
//查询剩余考试次数
|
|
//查询剩余考试次数
|
|
ExamApplyQueryBo examApplyQueryBo = new ExamApplyQueryBo();
|
|
ExamApplyQueryBo examApplyQueryBo = new ExamApplyQueryBo();
|
|
examApplyQueryBo.setUserId(userId);
|
|
examApplyQueryBo.setUserId(userId);
|
|
- examApplyQueryBo.setGoodsId(goodsId);
|
|
|
|
|
|
+ examApplyQueryBo.setOrderGoodsId(classGradeVo.getOrderGoodsId());
|
|
Integer residueSubscribeNext = examApplyMapper.residueSubscribeNext(examApplyQueryBo);
|
|
Integer residueSubscribeNext = examApplyMapper.residueSubscribeNext(examApplyQueryBo);
|
|
if (residueSubscribeNext == null || residueSubscribeNext < 1){
|
|
if (residueSubscribeNext == null || residueSubscribeNext < 1){
|
|
userSubscribeImport.setCause("剩余考试次数不足");
|
|
userSubscribeImport.setCause("剩余考试次数不足");
|
|
@@ -1079,7 +1079,7 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
|
|
//查询剩余考试次数
|
|
//查询剩余考试次数
|
|
ExamApplyQueryBo examApplyQueryBo = new ExamApplyQueryBo();
|
|
ExamApplyQueryBo examApplyQueryBo = new ExamApplyQueryBo();
|
|
examApplyQueryBo.setUserId(userId);
|
|
examApplyQueryBo.setUserId(userId);
|
|
- examApplyQueryBo.setGoodsId(goodsId);
|
|
|
|
|
|
+ examApplyQueryBo.setOrderGoodsId(classGradeVo.getOrderGoodsId());
|
|
Integer residueSubscribeNext = examApplyMapper.residueSubscribeNext(examApplyQueryBo);
|
|
Integer residueSubscribeNext = examApplyMapper.residueSubscribeNext(examApplyQueryBo);
|
|
if (residueSubscribeNext == null || residueSubscribeNext < 1){
|
|
if (residueSubscribeNext == null || residueSubscribeNext < 1){
|
|
userSubscribeImport.setCause("剩余考试次数不足");
|
|
userSubscribeImport.setCause("剩余考试次数不足");
|