|
@@ -120,7 +120,7 @@ public class GoodsQuestionRelExamServiceImpl extends ServiceImpl<GoodsQuestionRe
|
|
|
throw new CustomException("参数缺失");
|
|
|
}
|
|
|
GoodsQuestionRelExam detail = getOne(new LambdaQueryWrapper<GoodsQuestionRelExam>()
|
|
|
- .eq(GoodsQuestionRelExam::getRelId, bo.getRelId()).eq(GoodsQuestionRelExam::getStatus, 1)
|
|
|
+ .eq(GoodsQuestionRelExam::getRelId, bo.getRelId()).eq(GoodsQuestionRelExam::getUserId, bo.getUserId()).eq(GoodsQuestionRelExam::getStatus, 1)
|
|
|
.ge(GoodsQuestionRelExam::getExpTime, DateUtils.getNowTime()).last("limit 1"));
|
|
|
if(Validator.isNotEmpty(detail)){
|
|
|
return BeanUtil.toBean(detail,GoodsQuestionRelExamVo.class);
|
|
@@ -167,6 +167,7 @@ public class GoodsQuestionRelExamServiceImpl extends ServiceImpl<GoodsQuestionRe
|
|
|
iGoodsQuestionRelService.updateById(questionRel);
|
|
|
add.setExpTime(qsOrderGoods.getServiceEndTime());
|
|
|
add.setExamId(examId);
|
|
|
+ add.setStatus(1);
|
|
|
add.setUserSubscribeId(userSubscribe.getSubscribeId());
|
|
|
this.save(add);
|
|
|
return BeanUtil.toBean(add,GoodsQuestionRelExamVo.class);
|