Kaynağa Gözat

名额设置

ydmyzx 2 gün önce
ebeveyn
işleme
42a8cdbcf7

+ 4 - 1
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/studentSelectSupervisorRecord/StudentSelectSupervisorRecordController.java

@@ -66,7 +66,10 @@ public class StudentSelectSupervisorRecordController {
     @Idempotent(timeout = 10)
     public void checkIsSelection() {
         LocalDateTime nowTime =LocalDateTime.now();
-        studentSelectionProjectSaveReqVO project = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(nowTime.getYear()),studentSelectionProjectSaveReqVO.class);
+        studentSelectionProjectSaveReqVO project
+                = BeanUtils.toBean(
+                        studentSelectionProjectService.getStudentSelectionProjectByYear(nowTime.getYear())
+                ,studentSelectionProjectSaveReqVO.class);
         LocalDateTime endTime = project.getSupervisorConfirmDeadline();
         if (nowTime.isAfter(endTime)){
             checkSelection();

+ 9 - 1
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/studentSelectionProject/studentSelectionProjectController.java

@@ -46,7 +46,13 @@ import cn.iocoder.yudao.module.system.service.studentSelectionProject.studentSel
 @RequestMapping("/system/student-selection-project")
 @Validated
 public class studentSelectionProjectController {
-
+    // TODO 1.删除项目时,应该同时删除对应的关联信息
+    //  2. 新增接口 ,学院 :(1) 查看所有未提交、未通过、(注意提交但是撤回的状态)的学生 (2) 查看所有已通过的学生 (3) 招生详情只展示同意的
+    //   老师: (1) 新增菜单, 待审批接口 (2)已审批
+    //   学生:  (1)  操作提示 ,还有请求在待处理中 改为 已存在申请 , (2)申请表样式
+    //  3.合并菜单
+    //  4. 项目创建表单 名称和描述  年份默认
+    // TODO PDF导出
     @Resource
     private studentSelectionProjectService studentSelectionProjectService;
     @Resource
@@ -103,6 +109,7 @@ public class studentSelectionProjectController {
     @PutMapping("/update")
     @Operation(summary = "更新师生互选项目")
     @PreAuthorize("@ss.hasPermission('system:student-selection-project:update')")
+    @Transactional
     public CommonResult<Boolean> updateStudentSelectionProject(@Valid @RequestBody studentSelectionProjectSaveReqVO updateReqVO) {
         if (updateReqVO.getStudentStartTime().isAfter(updateReqVO.getSupervisorConfirmDeadline())){
             return error(1,"时间设置错误");
@@ -182,6 +189,7 @@ public class studentSelectionProjectController {
 
         return success(true);
     }
+
     private Map<String, String> findSupervisorQuotaById(List<Map<String, String>> supervisorsWithQuota, Long supervisorId) {
         for (Map<String, String> supervisorMap : supervisorsWithQuota) {
             if (supervisorId.toString().equals(supervisorMap.get("id"))) {