xiatian hai 1 ano
pai
achega
a118f28295
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/main/java/cn/com/qmth/export/MyConsumer.java

+ 3 - 0
src/main/java/cn/com/qmth/export/MyConsumer.java

@@ -311,6 +311,9 @@ public class MyConsumer extends Consumer<PaperExportDto> {
 	private List<QuestionVo> getSubQuestion(Connection connect, String courseCode, List<String> pids)
 	private List<QuestionVo> getSubQuestion(Connection connect, String courseCode, List<String> pids)
 			throws SQLException, IOException {
 			throws SQLException, IOException {
 		List<QuestionVo> qs = new ArrayList<>();
 		List<QuestionVo> qs = new ArrayList<>();
+		if(CollectionUtils.isEmpty(pids)) {
+			return qs;
+		}
 		PreparedStatement preState = null;
 		PreparedStatement preState = null;
 		ResultSet resultSet = null;
 		ResultSet resultSet = null;
 		try {
 		try {