|
@@ -211,7 +211,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
g.setGoodsPrice(courseVo.getPrice());
|
|
g.setGoodsPrice(courseVo.getPrice());
|
|
|
}
|
|
}
|
|
|
//题库
|
|
//题库
|
|
|
- if(g.getGoodsType()==1){
|
|
|
|
|
|
|
+ if(g.getGoodsType()==2){
|
|
|
QuestionBankVo questionBankVo = iQuestionBankService.queryById(g.getGoodsId());
|
|
QuestionBankVo questionBankVo = iQuestionBankService.queryById(g.getGoodsId());
|
|
|
if(questionBankVo==null||questionBankVo.getStatus()!=1){
|
|
if(questionBankVo==null||questionBankVo.getStatus()!=1){
|
|
|
throw new CustomException("题库无法购买");
|
|
throw new CustomException("题库无法购买");
|
|
@@ -219,7 +219,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
g.setGoodsPrice(questionBankVo.getPrice());
|
|
g.setGoodsPrice(questionBankVo.getPrice());
|
|
|
}
|
|
}
|
|
|
//考试重点
|
|
//考试重点
|
|
|
- if(g.getGoodsType()==1){
|
|
|
|
|
|
|
+ if(g.getGoodsType()==3){
|
|
|
ExamNoteVo examNoteVo = iExamNoteService.queryById(g.getGoodsId());
|
|
ExamNoteVo examNoteVo = iExamNoteService.queryById(g.getGoodsId());
|
|
|
if(examNoteVo==null||examNoteVo.getStatus()!=1){
|
|
if(examNoteVo==null||examNoteVo.getStatus()!=1){
|
|
|
throw new CustomException("考试重点无法购买");
|
|
throw new CustomException("考试重点无法购买");
|