From e41cd545d8f400df27b2580553ce17741ec278c3 Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Wed, 5 May 2021 17:01:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E8=AF=95=E7=94=B3=E8=AF=B7=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E5=8A=9F=E8=83=BD=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/examcheck/impl/ExamCheckServiceImpl.java | 11 +++++++++++ .../examination/impl/ExaminationServiceImpl.java | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/java/cn/com/tenlion/service/examcheck/impl/ExamCheckServiceImpl.java b/src/main/java/cn/com/tenlion/service/examcheck/impl/ExamCheckServiceImpl.java index 4ba431d..9ac23e5 100644 --- a/src/main/java/cn/com/tenlion/service/examcheck/impl/ExamCheckServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/examcheck/impl/ExamCheckServiceImpl.java @@ -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 diff --git a/src/main/java/cn/com/tenlion/service/examination/impl/ExaminationServiceImpl.java b/src/main/java/cn/com/tenlion/service/examination/impl/ExaminationServiceImpl.java index 5c7b5f8..ad864e1 100644 --- a/src/main/java/cn/com/tenlion/service/examination/impl/ExaminationServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/examination/impl/ExaminationServiceImpl.java @@ -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; } }