ting.yin 3 سال پیش
والد
کامیت
f7debbad1c
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      stmms-biz/src/main/java/cn/com/qmth/stmms/biz/exam/service/impl/InspectedServiceImpl.java

+ 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;
     }