|
@@ -183,8 +183,14 @@ public class BandingTaskServiceImpl extends MPJBaseServiceImpl<BandingTaskMapper
|
|
|
|
|
|
Map<Long, Integer> majorLimitMap = new HashMap<>();
|
|
Map<Long, Integer> majorLimitMap = new HashMap<>();
|
|
for (Long majorSetId : majorClassStudentCount.keySet()) {
|
|
for (Long majorSetId : majorClassStudentCount.keySet()) {
|
|
- Integer majorClassNumber = majorClassStudentCount.get(majorSetId);
|
|
|
|
- Integer majorStudentNumber = majorStudentCount.get(majorSetId);
|
|
|
|
|
|
+ int majorClassNumber = 0;
|
|
|
|
+ if(majorClassStudentCount.get(majorSetId) != null){
|
|
|
|
+ majorClassNumber = majorClassStudentCount.get(majorSetId);
|
|
|
|
+ }
|
|
|
|
+ int majorStudentNumber = 0;
|
|
|
|
+ if(majorStudentCount.get(majorSetId) != null){
|
|
|
|
+ majorStudentNumber = majorStudentCount.get(majorSetId);
|
|
|
|
+ }
|
|
Integer classCount = majorClassCount.get(majorSetId);
|
|
Integer classCount = majorClassCount.get(majorSetId);
|
|
if(majorStudentNumber < majorClassNumber){//报名人数小于班级人数
|
|
if(majorStudentNumber < majorClassNumber){//报名人数小于班级人数
|
|
Integer classLimtCount = majorStudentNumber / classCount;
|
|
Integer classLimtCount = majorStudentNumber / classCount;
|