修改报名审核问题

This commit is contained in:
ly19960718 2021-05-05 15:12:41 +08:00
parent 10cd9b6ec2
commit 94aea144ed

View File

@ -103,7 +103,7 @@ public class ApplyServiceImpl extends DefaultBaseService implements IApplyServic
if(applyDTO.getApplyAuditState() != 0){
throw new SearchException("报名信息已审核");
}
ClassPlanDTO classPlanDTO = classPlanService.get(applyAuditVO.getApplyId());
ClassPlanDTO classPlanDTO = classPlanService.get(applyDTO.getApplyClassId());
if(classPlanDTO == null){
throw new ParamsException("未查询到计划信息");
}
@ -120,6 +120,7 @@ public class ApplyServiceImpl extends DefaultBaseService implements IApplyServic
String applyCardNumber = page.getParams().get("applyCardNumber").toString();
String projectCatalogId = page.getParams().get("projectCatalogId").toString();
page.getParams().put("repotType",2);
page.getParams().put("signNowDate",DateUtil.getTime());
if(StringUtils.isBlank(applyCardNumber)){
throw new ParamsException("请填写证件号");
}
@ -201,8 +202,8 @@ public class ApplyServiceImpl extends DefaultBaseService implements IApplyServic
throw new ParamsException("未查询到计划信息");
}
int planPersonNum = classPlanDTO.getPlanPersonNum();//计划人数
String planStartTime = classPlanDTO.getPlanStartTime();//计划开始时间
String planEndTime = classPlanDTO.getPlanEndTime();//计划结束时间
String signUpStartTime = classPlanDTO.getSignUpStartTime();//报名开始时间
String signUpEndTime = classPlanDTO.getSignUpEndTime();//报名结束时间
int applyClassNumber = countApplyClassNumber(ApplyClassId);//以报名人数
if(applyClassNumber+1 > planPersonNum ){
@ -214,8 +215,8 @@ public class ApplyServiceImpl extends DefaultBaseService implements IApplyServic
Calendar end = Calendar.getInstance();
try {
date.setTime(df.parse(DateUtil.getTime()));
begin.setTime(df.parse(planStartTime));
end.setTime(df.parse(planEndTime));
begin.setTime(df.parse(signUpStartTime));
end.setTime(df.parse(signUpEndTime));
if (!(date.after(begin) && date.before(end))) {
throw new ParamsException("未在该计划的报名时间段");
}