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 15a3905..c0e1337 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 @@ -9,6 +9,7 @@ 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.examcheck.ExamCheckVO; +import cn.com.tenlion.service.applystudents.IApplyStudentsService; import cn.com.tenlion.service.classplan.IClassPlanService; import cn.com.tenlion.service.examapply.IExamApplyService; import cn.com.tenlion.service.examcheck.IExamCheckService; @@ -43,6 +44,8 @@ public class ExamCheckServiceImpl extends DefaultBaseService implements IExamChe private IClassPlanService classPlanService; @Autowired private IInstitutionService iInstitutionService; + @Autowired + private IApplyStudentsService applyStudentsService; @Override public void save(ExamCheckVO examCheckVO) { @@ -112,6 +115,14 @@ public class ExamCheckServiceImpl extends DefaultBaseService implements IExamChe setAppUpdateInfo(token, params); } examCheckDao.update(params); + // 开班计划审核通过以后,调用机构接口,删除机构相关信息 + if(2 == examCheckVO.getCheckStatus()) { + try { + applyStudentsService.saveCopeApply(examCheckVO.getOrgId(), examCheckVO.getWorkTypeId(), examCheckVO.getPlanId()); + }catch (Exception e) { + e.printStackTrace(); + } + } // 信息回传到培训机构,返回审核状态等信息 String classPlanId = examCheckVO.getPlanId(); ClassPlanVO classPlanVO = new ClassPlanVO(); diff --git a/src/main/resources/mybatis/mapper/examcheck/exam-check-mapper.xml b/src/main/resources/mybatis/mapper/examcheck/exam-check-mapper.xml index 00a2359..2118b87 100644 --- a/src/main/resources/mybatis/mapper/examcheck/exam-check-mapper.xml +++ b/src/main/resources/mybatis/mapper/examcheck/exam-check-mapper.xml @@ -377,7 +377,7 @@ management_exam_check t1 WHERE t1.is_delete = 0 - AND (t1.check_status = 0 OR t1.check_staus = 3) + AND (t1.check_status = 0 OR t1.check_status = 3) AND t1.work_type_id = #{workTypeId}