本文解答了关于《明确报名条件》相关内容,同时关于1、明确报名条件是什么,2、明确报名条件怎么填,3、明确报名条件怎么写,4、报名条件和要求,5、报名的条件,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
报考科目搭配
reportSubjectSubList = reportSubjectInfo(examInfo);
//处理完成
Flow flow = updateSendBackControl(examInfo);
response.setResult(flow);
//查询送审范围
List examSendOrgInfos = examSendOrgInfoService.queryExamSendOrgInfoByExamNum(examNum);
response.initCtrFldSendRange(examSendOrgInfos);
//报考科目
response.setResult(reportSubjectSubList);
return response;
}
// 已流转到审核节点
if (beNeedCompititionFee && !beCompleteCompetitionFee) {
//处理完成
Flow flow = updateSendBackControl(examInfo);
response.setResult(flow);
//查询送审范围
List examSendOrgInfos = examSendOrgInfoService.queryExamSendOrgInfoByExamNum(examNum);
response.initCtrFldSendRange(examSendOrgInfos);
return response;
}
//非报考业务
if (!beNeedCompititionFee && beCompleteCompetitionFee) {
//处理完
Flow flow = updateSendBackControl(examInfo);
response.setResult(flow);
//查询送审范围
List examSendOrgInfos = examSendOrgInfoService.queryExamSendOrgInfoByExamNum(examNum);
response.initCtrFldSendRange(examSendOrgInfos);
return response;
}
response.addError("exam info examNum =" + examNum + " status is wrong");
return response;
}
/**
* 获取流转control信息
*
* @param examInfo
* @return
*/
private Flow updateSendBackControl(ExamInfo examInfo) {
Flow flow = new Flow();
Long flowId = controlService.getflowIdByExamNum(examInfo.getExamNum());
flow.initFlowId(flowId);
flow.initExamNum(examInfo.getExamNum());
flow.initFlowType(FlowType.FK.getCode());
flow.initFlowStatus(FlowStatus.HANDING.getCode());
flow.initFlowControlType(FlowControllType.REJECT.getCode());
flow.initFlowOperator(SessionUtils.getUserInfo().getName());
flow.initFlowAction(FlowAction.REJECT.getCode());
flow.initFlowActionDesc(FlowAction.REJECT.getName());
flow.initUserNum(SessionUtils.getUserInfo().getUserNum());
flowService.updateSendBackControl(flow);
return flow;
}
/**
* 初始化考试fc
*
* @param examNum
* @return
*/
private ExamFc initExamFc(String examNum) {
ExamFc examFc = new ExamFc();
examFc.setExamNum(examNum);
//已报课
examFc.setExamFeeState(YesNoEnum.YES.getCode());
return examFc;
}
/**
* 判定流转的报考信息是否完成
*
* @param examInfo
* @return
*/
private boolean beJudged(ExamInfo examInfo) {
//判断高校报考状态,0:未报名、1:已提交、2:已缴费、3:已注册
int paymentStatus = examInfo.getPaymentStatus() != null ? Integer.parseInt(examInfo.getPaymentStatus()) : 0;
return paymentStatus == 2;
}
/**
* 报考要获取考生信息以及科目信息
*
* @param examNum
* @return
*/
private List reportSubjectInfo(ExamInfo examInfo) {
List examSubjects = examSurvice
.getExamSubjectByExamNum(examInfo.getExamNum());
String levelId = examSubjects.get(0).getLevelId();
DataParam dataParam = new DataParam("levelId", levelId);
List subjectInfos = examSurvice.getSubjectInfo(dataParam);
//封装报考科目
List reportSubjectSubList = new ArrayList<>(subjectInfos.size());
subjectInfos.forEach(x -> {
ReportSubject reportSubject = new ReportSubject();
reportSubject.initExamNum(examInfo.getExamNum());
reportSubject.setName(x.getName());
reportSubject.setLevelId(x.getLevelId());
reportSubject.setFee(x.getFeeAmount());
reportSubject.setSubjectId(x.getId());
reportSubjectSubList.add(reportSubject);
});
return reportSubjectSubList;
}
}
总结:以上是编辑:【月独一】整理及AI智能原创关于《明确报名条件
》优质内容解答希望能帮助到您。