Merge branch 'baotou-signup' of e.coding.net:tsteam/btsaqscksfwpt/system-examination-signup into baotou-signup

This commit is contained in:
wans 2021-05-15 17:15:41 +08:00
commit 6c50605f80
3 changed files with 28 additions and 1 deletions

View File

@ -209,6 +209,16 @@ public interface IExamCheckService {
*/
Boolean getExamCheck(String workTypeId, String orgId);
/**
* 开办申请记录查询
* 通过返回true
* 不存在待审核退回返回false
* @param workTypeId
* @param orgId
* @return
*/
Boolean getPlanExamCheck(String workTypeId, String orgId, String classPlanId);
/**
* 开办申请记录查询
* 不存在待审核退回返回true

View File

@ -115,10 +115,11 @@ public class ExamCheckServiceImpl extends DefaultBaseService implements IExamChe
setAppUpdateInfo(token, params);
}
examCheckDao.update(params);
ExamCheckDTO examCheckDTO = get(examCheckId);
// 开班计划审核通过以后调用机构接口删除机构相关信息
if(2 == examCheckVO.getCheckStatus()) {
try {
applyStudentsService.saveCopeApply(examCheckVO.getOrgId(), examCheckVO.getWorkTypeId(), examCheckVO.getPlanId());
applyStudentsService.saveCopeApply(examCheckDTO.getOrgId(), examCheckDTO.getWorkTypeId(), examCheckDTO.getPlanId());
}catch (Exception e) {
e.printStackTrace();
}
@ -246,6 +247,19 @@ public class ExamCheckServiceImpl extends DefaultBaseService implements IExamChe
return true;
}
@Override
public Boolean getPlanExamCheck(String workTypeId, String orgId, String classPlanId) {
Map<String, Object> params = new HashMap<>(1);
params.put("workTypeId", workTypeId);
params.put("orgId", orgId);
params.put("classPlanId", classPlanId);
ExamCheckDTO examCheckDTO = examCheckDao.getExamCheck(params);
if(null == examCheckDTO) {
return false;
}
return true;
}
@Override
public Boolean getExamCheckFailOrBack(String workTypeId, String orgId) {
Map<String, Object> params = new HashMap<>(1);

View File

@ -388,6 +388,9 @@
<if test="orgId != null and orgId != ''">
AND t1.org_id = #{orgId}
</if>
<if test="classPlanId != null and classPlanId != ''">
AND t1.plan_id = #{classPlanId}
</if>
</select>
</mapper>