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 {