浏览代码

1、提交作业添加限制;
2、服务指标;

Joburgess 5 年之前
父节点
当前提交
69fe8f5895
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      mec-student/src/main/java/com/ym/mec/student/controller/PracticeGroupController.java

+ 4 - 4
mec-student/src/main/java/com/ym/mec/student/controller/PracticeGroupController.java

@@ -93,12 +93,12 @@ public class PracticeGroupController extends BaseController {
             return failed(HttpStatus.FORBIDDEN, "请登录");
         }
         Map<String,Object> result=practiceGroupService.getPracticeApplyParams(sysUser.getId());
-        if(ENABLE_APPLY_ORGANIDS.contains(sysUser.getOrganId())){
+//        if(ENABLE_APPLY_ORGANIDS.contains(sysUser.getOrganId())){
             Integer applyTimes = practiceGroupDao.countUserPracticeApplyRecord(sysUser.getId());
             result.put("enableApply", applyTimes < 1 ? 1 : 0);
-        }else{
-            result.put("enableApply", 0);
-        }
+//        }else{
+//            result.put("enableApply", 0);
+//        }
         return succeed(result);
     }