|
@@ -1668,7 +1668,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public boolean checkUserVideo(CheckUserVideoBo bo) {
|
|
|
|
|
|
+ public Integer checkUserVideo(CheckUserVideoBo bo) {
|
|
User user = iUserService.getById(bo.getUserId());
|
|
User user = iUserService.getById(bo.getUserId());
|
|
if (ObjectUtils.isNull(user)){
|
|
if (ObjectUtils.isNull(user)){
|
|
throw new CustomException("用户不存在,请检查!");
|
|
throw new CustomException("用户不存在,请检查!");
|
|
@@ -1677,7 +1677,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
if (ObjectUtils.isNull(orderGoods)){
|
|
if (ObjectUtils.isNull(orderGoods)){
|
|
throw new CustomException("订单不存在,请检查!");
|
|
throw new CustomException("订单不存在,请检查!");
|
|
}
|
|
}
|
|
- int count = iUserStudyVideoService.count(new LambdaQueryWrapper<UserStudyVideo>()
|
|
|
|
|
|
+ return iUserStudyVideoService.count(new LambdaQueryWrapper<UserStudyVideo>()
|
|
.eq(UserStudyVideo::getUserId, bo.getUserId())
|
|
.eq(UserStudyVideo::getUserId, bo.getUserId())
|
|
.eq(UserStudyVideo::getOrderGoodsId, bo.getOrderGoodsId())
|
|
.eq(UserStudyVideo::getOrderGoodsId, bo.getOrderGoodsId())
|
|
.eq(UserStudyVideo::getGoodsId, bo.getGoodsId())
|
|
.eq(UserStudyVideo::getGoodsId, bo.getGoodsId())
|
|
@@ -1686,8 +1686,8 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
.eq(UserStudyVideo::getChapterId, bo.getChapterId())
|
|
.eq(UserStudyVideo::getChapterId, bo.getChapterId())
|
|
.eq(UserStudyVideo::getSectionId, bo.getSectionId())
|
|
.eq(UserStudyVideo::getSectionId, bo.getSectionId())
|
|
.eq(UserStudyVideo::getCurrentStatus, 1)
|
|
.eq(UserStudyVideo::getCurrentStatus, 1)
|
|
|
|
+ .isNull(UserStudyVideo::getVideoUrl)
|
|
.eq(UserStudyVideo::getStatus, 1));
|
|
.eq(UserStudyVideo::getStatus, 1));
|
|
- return count > 0;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -1696,7 +1696,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
if (ObjectUtils.isNull(user)){
|
|
if (ObjectUtils.isNull(user)){
|
|
throw new CustomException("用户不存在,请检查!");
|
|
throw new CustomException("用户不存在,请检查!");
|
|
}
|
|
}
|
|
- OrderGoods orderGoods = iOrderGoodsService.getById(bo.getGoodsId());
|
|
|
|
|
|
+ OrderGoods orderGoods = iOrderGoodsService.getById(bo.getOrderGoodsId());
|
|
if (ObjectUtils.isNull(orderGoods)){
|
|
if (ObjectUtils.isNull(orderGoods)){
|
|
throw new CustomException("订单不存在,请检查!");
|
|
throw new CustomException("订单不存在,请检查!");
|
|
}
|
|
}
|