ting.yin 3 years ago
parent
commit
f7debbad1c

+ 4 - 2
stmms-biz/src/main/java/cn/com/qmth/stmms/biz/exam/service/impl/InspectedServiceImpl.java

@@ -167,8 +167,10 @@ public class InspectedServiceImpl extends BaseQueryService<ExamStudent> implemen
                 groupNumbers.add(groups.get(i).getNumber());
             }
             dataQuery.setParameter("groupNumbers", groupNumbers);
-            int skipCount = selectiveGroups.size() - selectiveGroups.get(0).getSelectiveCount() - 1;
-            dataQuery.setParameter("skipCount", skipCount);
+            if (SelectiveStatus.MUTI_SELECTIVE.equals(selectiveStatus)) {
+                int skipCount = selectiveGroups.size() - selectiveGroups.get(0).getSelectiveCount() - 1;
+                dataQuery.setParameter("skipCount", skipCount);
+            }
         }
         return dataQuery;
     }