xiatian 1 년 전
부모
커밋
a118f28295
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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)
 			throws SQLException, IOException {
 		List<QuestionVo> qs = new ArrayList<>();
+		if(CollectionUtils.isEmpty(pids)) {
+			return qs;
+		}
 		PreparedStatement preState = null;
 		ResultSet resultSet = null;
 		try {