优先录取项目(优先录取项目申报)

时间:2023/10/17 10:43:36 编辑:福途教育 标签:高考

榜单说明:福途教育网榜单是基于互联网大数据统计及人为根据市场和参数条件变化的分析而得出本站站内排序,排名不分先后,仅供参考。

2024年【高考】申请条件/费用/专业咨询 >>

高考申请条件是什么?高考费用是多少?高考专业都有哪些?

点击咨询

    本文解答了关于《优先录取项目》相关内容,同时关于1、优先录取项目是什么,2、优先录取项目,3、优先录取项目申报,4、优先录取的条件,5、优先录取有用吗,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。

    优先录取项目(优先录取项目申报)

    优先录取项目

    ProjectEnrollDTO projectEnrollDTO = new ProjectEnrollDTO();

    projectEnrollDTO.setStudentCode(userStudentDTO.getStudentCode());

    List proEnrollList = this.projectEnrollService.select(projectEnrollDTO);

    if(proEnrollList.size() > 0){

    ProjectEnroll projectEnroll = proEnrollList.get(0);

    ProjectApply projectApply = projectEnroll.getProjectApply();

    Project project = projectApply.getProject();

    if(null != project && "1".equals(project.getIsUse())){

    ProjectLeader projectLeader = projectLeaderService.getByProjectIdAndGraduateCode(project.getId(), userStudentDTO.getStudentCode());

    // 毕业申报材料提交前(未提交) 唯一性校验

    if(null == projectLeader

    "no_submit".equals(projectLeader.getStatus())){

    SessionUtil.setAttribute(request, "projectLeader", projectLeader);

    map.put("projectId", project.getId());

    map.put("projectName", project.getName());

    map.put("projectLeaderName", project.getCreatorName());

    return new Response<>(Boolean.TRUE, map, "成功");

    } else {

    // 当前选择的项目有提交申请且审批状态为拒绝时或者超过提交材料申报截止时间

    // 可以重新提交申请,其他情况不能重复提交

    if("refuse".equals(projectLeader.getStatus())

    "deadline".equals(projectLeader.getStatus())){

    ProjectLeaderRefuseDTO projectLeaderRefuseDTO = new ProjectLeaderRefuseDTO();

    projectLeaderRefuseDTO.setProjectId(projectLeader.getProjectId());

    projectLeaderRefuseDTO.setGraduateCode(projectLeader.getGraduateCode());

    projectLeaderRefuseDTO.setStatus("refuse");

    ProjectLeaderRefuse projectLeaderRefuse = projectLeaderRefuseService.get(projectLeaderRefuseDTO);

    if(null != projectLeaderRefuse){

    // 如果已存在拒绝记录,将状态改为no_submit

    ProjectLeaderRefuseDTO leaderRefuseDTO = new ProjectLeaderRefuseDTO();

    leaderRefuseDTO.setId(projectLeaderRefuse.getId());

    leaderRefuseDTO.setStatus("no_submit");

    leaderRefuseDTO.setCreateTime(new Date());

    leaderRefuseDTO.setModifyTime(new Date());

    this.projectLeaderRefuseService.update(leaderRefuseDTO);

    SessionUtil.setAttribute(request, "projectLeader", projectLeader);

    map.put("projectId", project.getId());

    map.put("projectName", project.getName());

    map.put("projectLeaderName", project.getCreatorName());

    return new Response<>(Boolean.TRUE, map, "成功");

    }

    }

    }

    }

    }

    return new Response<>(Boolean.FALSE, "暂未被录取,无法申报毕业材料", "请先发布项目邀请书,选择优秀学生参加毕业设计");

    }

    }else{

    return new Response<>(Boolean.FALSE, null, "参数错误");

    }

    Project project = projectService.selectByPrimaryKey(projectId);

    if(project!=null){

    if("2".equals(project.getIsUse())){

    return new Response<>(Boolean.FALSE, null, "该项目已拒绝申报,请选择其他项目进行申报毕业材料");

    }

    ProjectLeader projectLeader = projectLeaderService.getByProjectIdAndGraduateCode(project.getId(), studentCode);

    if(projectLeader==null){

    List projectLeaderList = projectLeaderService.getListByProjectId(project.getId());

    if(projectLeaderList != null && projectLeaderList.size() > 0){

    projectLeaderList = projectLeaderList.stream()

    .filter(item->!userStudentDTO.getStudentCode().equals(item.getGraduateCode())).collect(Collectors.toList());

    if(projectLeaderList.size() > 0){

    //ProjectLeader projectLeader2 = projectLeaderList.get(projectLeaderList.size() - 1);

    return new Response<>(Boolean.FALSE, null, "该项目已由"+projectLeaderList.get(0).getUserName()+"申报,请选择其他项目进行申报毕业材料");

    }

    }

    String applydate = projectApplyService.getApplyDateByProjectIdAndGraduateCode(project.getId(), studentCode);

    if(StringUtils.isBlank(applydate)){

    // 添加申报信息

    ProjectApply projectApply = new ProjectApply();

    projectApply.setCreateTime(new Date());

    projectApply.setProjectId(project.getId());

    projectApply.setModifyTime(new Date());

    projectApply.setStudentCode(studentCode);

    projectApplyService.insert(projectApply);

    // 删除拒绝记录

    ProjectLeaderRefuseDTO projectLeaderRefuseDTO = new ProjectLeaderRefuseDTO();

    projectLeaderRefuseDTO.setProjectId(project.getId());

    projectLeaderRefuseDTO.setGraduateCode(studentCode);

    projectLeaderRefuseDTO.setStatus("refuse");

    this.projectLeaderRefuseService.deleteByPramas(projectLeaderRefuseDTO);

    }

    projectLeader = new ProjectLeader();

    projectLeader.setCreateTime(new Date());

    projectLeader.setGraduateCode(studentCode);

    projectLeader.setModifyTime(new Date());

    projectLeader.setProjectId(project.getId());

    projectLeader.setStatus("no_submit");

    projectLeaderService.insert(projectLeader);

    // 发送邮件

    projectLeaderService.sendChooseProjectAuditInfoToEmail(projectLeader, userStudentDTO);

    SessionUtil.setAttribute(request, "projectLeader", projectLeader);

    map.put("projectId", project.getId());

    map.put

    总结:以上是编辑:【荆天浩】整理及AI智能原创关于《

    优先录取项目

    》优质内容解答希望能帮助到您。
了解 【高考】更多资讯
以上手机版 优先录取项目(优先录取项目申报) 小编为您整理优先录取项目(优先录取项目申报)的全部内容,以上内容仅供参考。
上一篇:企业所得税年报提交后能修改吗(企业所得税年报已申报如何更正申报)
下一篇:一级造价工程师考试考哪几科

热门推荐

最新文章