mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 11:56:50 +08:00
仅内网可见-学员端
This commit is contained in:
@@ -235,8 +235,9 @@ public class StudyCourseApi extends ApiBaseController{
|
||||
rs.put("sections",sectionlist);
|
||||
rs.put("teachers",teachers);
|
||||
|
||||
|
||||
CommonSearchVo searcher = new CommonSearchVo();
|
||||
searcher.setCode("course_warn");
|
||||
searcher.setPid(380L);
|
||||
searcher.setType(1);
|
||||
List<String> dicts = thirdApi.getDictItems(searcher);
|
||||
boolean isPermission = false;
|
||||
@@ -244,7 +245,12 @@ public class StudyCourseApi extends ApiBaseController{
|
||||
isPermission = dicts.contains(course.getOrgId());
|
||||
}
|
||||
rs.put("isPermission",isPermission);
|
||||
rs.put("dicts",dicts);
|
||||
|
||||
CommonSearchVo warn = new CommonSearchVo();
|
||||
warn.setPid(380L);
|
||||
warn.setType(1);
|
||||
List<String> warns = thirdApi.getDictItems(searcher);
|
||||
rs.put("warn",warns.get(0));
|
||||
//检查是否已报名
|
||||
StudyCourse sc=service.findByCourseIdAndAid(cid, aid);
|
||||
if(pass==true && sc==null) {
|
||||
|
||||
Reference in New Issue
Block a user