分页展示bug修改,代码优化

hehai
shijie 4 years ago
parent ad02c4ad50
commit e929a380c0
  1. 8
      pom.xml
  2. 4
      src/main/java/com/msdw/tms/service/impl/QuestionsServiceImpl.java

@ -118,6 +118,14 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>

@ -104,7 +104,7 @@ public class QuestionsServiceImpl extends ServiceImpl<QuestionsDao, QuestionsEnt
PageUtils questionsPage = new PageUtils(questionsIPage); PageUtils questionsPage = new PageUtils(questionsIPage);
new PageUtils(questionsIPage).setList(questions); questionsPage.setList(questions);
return questionsPage; return questionsPage;
} }
@ -234,7 +234,7 @@ public class QuestionsServiceImpl extends ServiceImpl<QuestionsDao, QuestionsEnt
} else if (questionType.equals(Constant.QuestionType.TRUE_OR_FALSE.getDesc())) { } else if (questionType.equals(Constant.QuestionType.TRUE_OR_FALSE.getDesc())) {
//判断题 //判断题
questionsEntity.setQuestionTypeNo(Constant.QuestionType.TRUE_OR_FALSE.getType()); questionsEntity.setQuestionTypeNo(Constant.QuestionType.TRUE_OR_FALSE.getType());
} else {// 判断题型是否不存在。。。 } else {// 判断题型是否不存在
//说明题型不正确 //说明题型不正确
ExceptionCast.cast(CommonCode.QUESTIONTYPE_INVALID); ExceptionCast.cast(CommonCode.QUESTIONTYPE_INVALID);
} }

Loading…
Cancel
Save