|
@@ -212,6 +212,8 @@ public class UserExamGoodsServiceImpl extends ServiceImpl<UserExamGoodsMapper, U
|
|
|
objectLambdaUpdateWrapper.set(UserExamGoods::getExamNumber, examGoodsVo.getExamNumber().longValue()-entity.getExamNumber().longValue());
|
|
|
objectLambdaUpdateWrapper.set(UserExamGoods::getUpdateTime,DateUtils.getNowTime());
|
|
|
update(null, objectLambdaUpdateWrapper);
|
|
|
+ entity.setStatus(-1);
|
|
|
+ iUserExamGoodsSupplementService.updateById(entity);
|
|
|
return true;
|
|
|
}else{
|
|
|
throw new CustomException("剩余次数不满足退款");
|
|
@@ -228,6 +230,8 @@ public class UserExamGoodsServiceImpl extends ServiceImpl<UserExamGoodsMapper, U
|
|
|
objectLambdaUpdateWrapper.set(UserExamGoods::getExamNumber, examGoodsVo.getDoNumber().longValue()-entity.getDoNumber().longValue());
|
|
|
objectLambdaUpdateWrapper.set(UserExamGoods::getUpdateTime,DateUtils.getNowTime());
|
|
|
update(null, objectLambdaUpdateWrapper);
|
|
|
+ entity.setStatus(-1);
|
|
|
+ iUserExamGoodsSupplementService.updateById(entity);
|
|
|
return true;
|
|
|
}else{
|
|
|
throw new CustomException("剩余次数不满足退款");
|