开班计划审核

考试申请审核
This commit is contained in:
Renpc-kilig 2021-05-15 13:06:55 +08:00
parent a7f58dbc6e
commit e96386f122
2 changed files with 12 additions and 1 deletions

View File

@ -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();

View File

@ -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)
<if test="workTypeId != null and workTypeId != ''">
AND t1.work_type_id = #{workTypeId}
</if>