|
|
@@ -133,7 +133,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
|
|
|
//更新题库题目数目
|
|
|
private void updateQuestionNum(Question entity,int num){
|
|
|
- if(entity.getParentType()==1){
|
|
|
+ if(entity.getType()==1){
|
|
|
//1普通练习
|
|
|
QuestionBankSection dbSection = questionBankSectionMapper.selectById(entity.getBankSectionId());
|
|
|
QuestionBankChapter dbChapter = questionBankChapterMapper.selectById(dbSection.getBankChapterId());
|