课程目录是否可复读添加下架标志
This commit is contained in:
@@ -96,6 +96,7 @@ public class CourseRelearnController {
|
|||||||
@RequestMapping("/courseCatalogueCanRelearn")
|
@RequestMapping("/courseCatalogueCanRelearn")
|
||||||
public R courseCatalogueCanRelearn(@RequestBody Map<String,Object> params){
|
public R courseCatalogueCanRelearn(@RequestBody Map<String,Object> params){
|
||||||
boolean flag = false;
|
boolean flag = false;
|
||||||
|
boolean displayFlag = false;
|
||||||
CourseCatalogueEntity cc = courseCatalogueService.getById(params.get("courseCatalogueId").toString());
|
CourseCatalogueEntity cc = courseCatalogueService.getById(params.get("courseCatalogueId").toString());
|
||||||
if (cc != null) {
|
if (cc != null) {
|
||||||
CourseEntity courseEntity = courseService.getById(cc.getCourseId());
|
CourseEntity courseEntity = courseService.getById(cc.getCourseId());
|
||||||
@@ -116,10 +117,12 @@ public class CourseRelearnController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
displayFlag = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return R.ok().put("canRelearn",flag);
|
return R.ok().put("canRelearn",flag).put("displayFlag",displayFlag);
|
||||||
}
|
}
|
||||||
|
|
||||||
//课程目录复读列表
|
//课程目录复读列表
|
||||||
|
|||||||
Reference in New Issue
Block a user