考试申请审核功能修改。

This commit is contained in:
Renpc-kilig 2021-05-05 17:01:59 +08:00
parent 20da5aa0a0
commit e41cd545d8
2 changed files with 13 additions and 2 deletions

View File

@ -5,8 +5,10 @@ import cn.com.tenlion.dao.examcheck.IExamCheckDao;
import cn.com.tenlion.pojo.bos.examcheck.ExamCheckBO;
import cn.com.tenlion.pojo.dtos.examcheck.ExamCheckDTO;
import cn.com.tenlion.pojo.pos.examcheck.ExamCheckPO;
import cn.com.tenlion.pojo.vos.classplan.ClassPlanVO;
import cn.com.tenlion.pojo.vos.examapply.ExamApplyVO;
import cn.com.tenlion.pojo.vos.examcheck.ExamCheckVO;
import cn.com.tenlion.service.classplan.IClassPlanService;
import cn.com.tenlion.service.examapply.IExamApplyService;
import cn.com.tenlion.service.examcheck.IExamCheckService;
import ink.wgink.common.base.DefaultBaseService;
@ -36,6 +38,8 @@ public class ExamCheckServiceImpl extends DefaultBaseService implements IExamChe
private IExamCheckDao examCheckDao;
@Autowired
private IExamApplyService examApplyService;
@Autowired
private IClassPlanService classPlanService;
@Override
public void save(ExamCheckVO examCheckVO) {
@ -108,9 +112,16 @@ public class ExamCheckServiceImpl extends DefaultBaseService implements IExamChe
// 如果受理通过则新增一条考场分配数据
if(2 == examCheckVO.getCheckStatus()) {
ExamApplyVO examApplyVO = new ExamApplyVO();
examApplyVO.setStatus(0);
examApplyVO.setExamId(examCheckVO.getPlanId());
examApplyService.save(examApplyVO);
}
// 信息回传到培训机构返回审核状态等信息
String classPlanId = examCheckVO.getPlanId();
ClassPlanVO classPlanVO = new ClassPlanVO();
classPlanVO.setReportType(examCheckVO.getCheckStatus().toString());
classPlanVO.setReportReason(examCheckVO.getReason());
classPlanService.update(classPlanId, classPlanVO);
}
@Override

View File

@ -295,7 +295,7 @@ public class ExaminationServiceImpl extends DefaultBaseService implements IExami
DistributionFieldSaveVO distributionFieldSaveVO = new DistributionFieldSaveVO();
distributionFieldSaveVO.setInvigilatorId(examinationDTO.getExaminationId());
distributionFieldService.update(distributionFieldDTO.getDistributionFieldId(), distributionFieldSaveVO);
distributionCardService.buildingPictures(params.get("examId").toString(), params.get("examId").toString());
distributionCardService.saveBuildingPictures(params.get("examId").toString(), params.get("examId").toString());
return examinationDTO;
}
}
@ -315,7 +315,7 @@ public class ExaminationServiceImpl extends DefaultBaseService implements IExami
DistributionFieldSaveVO distributionFieldSaveVO = new DistributionFieldSaveVO();
distributionFieldSaveVO.setInvigilatorId(examinationDTO.getExaminationId());
distributionFieldService.update(distributionFieldDTO.getDistributionFieldId(), distributionFieldSaveVO);
distributionCardService.buildingPictures(params.get("examId").toString(), params.get("examId").toString());
distributionCardService.saveBuildingPictures(params.get("examId").toString(), params.get("examId").toString());
return examinationDTO;
}
}