he2802 hace 4 años
padre
commit
c17c49aca2

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/bank/service/impl/QuestionServiceImpl.java

@@ -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());