From e96386f122ced76a50febcece673111b19f26733 Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Sat, 15 May 2021 13:06:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E7=8F=AD=E8=AE=A1=E5=88=92=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=20=E8=80=83=E8=AF=95=E7=94=B3=E8=AF=B7=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/examcheck/impl/ExamCheckServiceImpl.java | 11 +++++++++++ .../mybatis/mapper/examcheck/exam-check-mapper.xml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) 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}