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); Boolean getExamCheck(String workTypeId, String orgId);
/**
* 开办申请记录查询
* 通过返回true
* 不存在待审核退回返回false
* @param workTypeId
* @param orgId
* @return
*/
Boolean getPlanExamCheck(String workTypeId, String orgId, String classPlanId);
/** /**
* 开办申请记录查询 * 开办申请记录查询
* 不存在待审核退回返回true * 不存在待审核退回返回true

View File

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

View File

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