|
@@ -111,6 +111,8 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
private ICoursePhotoLogService iCoursePhotoLogService;
|
|
|
@Autowired
|
|
|
private IUserBankRecordService iUserBankRecordService;
|
|
|
+ @Autowired
|
|
|
+ private IUserExamGoodsService iUserExamGoodsService;
|
|
|
|
|
|
@Override
|
|
|
public UserStudyRecordVo queryById(Long recordId) {
|
|
@@ -182,6 +184,11 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
lqw4.eq(UserSubscribe::getGoodsId, goodsId);
|
|
|
lqw4.eq( UserSubscribe::getUserId, userId);
|
|
|
iUserSubscribeService.remove(lqw4);
|
|
|
+ //清除报考次数
|
|
|
+ LambdaQueryWrapper<UserExamGoods> lqw5 = Wrappers.lambdaQuery();
|
|
|
+ lqw5.eq(UserExamGoods::getGoodsId, goodsId);
|
|
|
+ lqw5.eq( UserExamGoods::getUserId, userId);
|
|
|
+ iUserExamGoodsService.remove(lqw5);
|
|
|
return null;
|
|
|
}
|
|
|
|