|
|
|
@ -12,6 +12,7 @@ import com.xhm.ynedu.domain.YnInterviewScore;
|
|
|
|
|
import com.xhm.ynedu.mapper.YnExamineeLeadMapper; |
|
|
|
|
import com.xhm.ynedu.mapper.YnExaminerLeadMapper; |
|
|
|
|
import com.xhm.ynedu.mapper.YnInterviewScoreMapper; |
|
|
|
|
import com.xhm.ynedu.service.IYnExamineeLeadService; |
|
|
|
|
import com.xhm.ynedu.vo.SubjectVO; |
|
|
|
|
import com.xhm.ynedu.vo.YnSubjectVO; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@ -154,6 +155,12 @@ public class YnSubjectServiceImpl implements IYnSubjectService {
|
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(i == examineeLeads1.size()- 1){ |
|
|
|
|
if (examineeLeads1.get(i).getState() == 3) { |
|
|
|
|
a = 3; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -218,6 +225,7 @@ public class YnSubjectServiceImpl implements IYnSubjectService {
|
|
|
|
|
} |
|
|
|
|
else{ |
|
|
|
|
//
|
|
|
|
|
ynSubjectVO.setState(true); |
|
|
|
|
ynSubjectVO.setLastOne(true); |
|
|
|
|
System.out.println("考生的最后一个考生"); |
|
|
|
|
break; |
|
|
|
@ -324,6 +332,7 @@ public class YnSubjectServiceImpl implements IYnSubjectService {
|
|
|
|
|
} |
|
|
|
|
else{ |
|
|
|
|
//
|
|
|
|
|
ynSubjectVO.setState(true); |
|
|
|
|
ynSubjectVO.setLastOne(true); |
|
|
|
|
System.out.println("考生的最后一个考生"); |
|
|
|
|
break; |
|
|
|
@ -392,7 +401,11 @@ public class YnSubjectServiceImpl implements IYnSubjectService {
|
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//判断是否考试结束
|
|
|
|
|
int i2 = selectExamineeLead(); |
|
|
|
|
if(i2 == 3){ |
|
|
|
|
ynSubjectVO.setState(true); |
|
|
|
|
} |
|
|
|
|
return ynSubjectVO; |
|
|
|
|
} |
|
|
|
|
//查询评分项目
|
|
|
|
@ -407,6 +420,31 @@ public class YnSubjectServiceImpl implements IYnSubjectService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//查询是否结束考试
|
|
|
|
|
public int selectExamineeLead() { |
|
|
|
|
int num = 1; |
|
|
|
|
int a = 0; |
|
|
|
|
List<YnExamineeLead> list = examineeLeadMapper.selectYnExamineeLeadList(null); |
|
|
|
|
for (YnExamineeLead ynExamineeLead : list) { |
|
|
|
|
Integer state = ynExamineeLead.getState(); |
|
|
|
|
if(state.equals(1)){ |
|
|
|
|
num = 1; |
|
|
|
|
} |
|
|
|
|
if(state.equals(2) ){ |
|
|
|
|
num = 2; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
if(state.equals(5) || state.equals(3) ){ |
|
|
|
|
a++; |
|
|
|
|
if(a == list.size()){ |
|
|
|
|
num = 3; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return num; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|