吴门医述游客模式
This commit is contained in:
@@ -204,6 +204,39 @@ public class VisitorController {
|
|||||||
List<CourseMedicine> labelsTree = medicalService.getCourseMedicalTree();
|
List<CourseMedicine> labelsTree = medicalService.getCourseMedicalTree();
|
||||||
return R.ok().put("labels",labelsTree);
|
return R.ok().put("labels",labelsTree);
|
||||||
}
|
}
|
||||||
|
//获取吴门医述标签下课程
|
||||||
|
@RequestMapping("/getCourseByMedicalId")
|
||||||
|
public R getCourseByMedicalId(@RequestBody Map params){
|
||||||
|
MPJLambdaWrapper<CourseEntity> wrapper = new MPJLambdaWrapper();
|
||||||
|
wrapper.selectAll(CourseEntity.class);
|
||||||
|
wrapper.leftJoin(CourseToMedicine.class,CourseToMedicine::getCourseId,CourseEntity::getId);
|
||||||
|
wrapper.eq(CourseToMedicine::getMedicalId,params.get("medicalId"));
|
||||||
|
List<CourseEntity> courseList = courseService.list(wrapper);
|
||||||
|
return R.ok().put("courseList",courseList);
|
||||||
|
}
|
||||||
|
//课程详情
|
||||||
|
@RequestMapping("/getMedicalCourseInfo")
|
||||||
|
public R getMedicalCourseInfo(@RequestBody Map params){
|
||||||
|
Map<String, Object> courseDetail = new HashMap<>();
|
||||||
|
//基础信息
|
||||||
|
CourseEntity course = courseService.getById(params.get("courseId").toString());
|
||||||
|
courseDetail.put("course",course);
|
||||||
|
//目录信息
|
||||||
|
List<CourseCatalogueEntity> courseCatalogueEntities = courseCatalogueService.list(new LambdaQueryWrapper<CourseCatalogueEntity>()
|
||||||
|
.eq(CourseCatalogueEntity::getCourseId, course.getId()).orderByAsc(CourseCatalogueEntity::getSort));
|
||||||
|
courseDetail.put("catalogues",courseCatalogueEntities);
|
||||||
|
return R.ok().put("data",courseDetail);
|
||||||
|
}
|
||||||
|
//课程章节
|
||||||
|
@RequestMapping("/getMedicalCourseCatalogueInfo")
|
||||||
|
public R getMedicalCourseCatalogueInfo(@RequestBody Map params){
|
||||||
|
LambdaQueryWrapper<CourseCatalogueChapterEntity> wrapper = new LambdaQueryWrapper<>();
|
||||||
|
wrapper.eq(CourseCatalogueChapterEntity::getCatalogueId,params.get("catalogueId"));
|
||||||
|
wrapper.orderByAsc(CourseCatalogueChapterEntity::getSort);
|
||||||
|
List<CourseCatalogueChapterEntity> list = courseCatalogueChapterService.list(wrapper);
|
||||||
|
return R.ok().put("list",list);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 营销标签下商品列表
|
* 营销标签下商品列表
|
||||||
*/
|
*/
|
||||||
@@ -263,7 +296,7 @@ public class VisitorController {
|
|||||||
return R.ok().put("labels",labelsTree);
|
return R.ok().put("labels",labelsTree);
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取标签下课程
|
//获取众妙之门标签下课程
|
||||||
@RequestMapping("/getCourseBySociologyId")
|
@RequestMapping("/getCourseBySociologyId")
|
||||||
public R getCourseBySociology(@RequestBody Map params){
|
public R getCourseBySociology(@RequestBody Map params){
|
||||||
MPJLambdaWrapper<CourseEntity> wrapper = new MPJLambdaWrapper();
|
MPJLambdaWrapper<CourseEntity> wrapper = new MPJLambdaWrapper();
|
||||||
@@ -393,7 +426,7 @@ public class VisitorController {
|
|||||||
return R.ok().put("page",taihuWelfareEntityPage);
|
return R.ok().put("page",taihuWelfareEntityPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取太湖之光文章详情
|
//获取太湖公益商品
|
||||||
@RequestMapping("/getTaihuWelfareProductList")
|
@RequestMapping("/getTaihuWelfareProductList")
|
||||||
public R getTaihuWelfareProductList(@RequestBody ParamTo param){
|
public R getTaihuWelfareProductList(@RequestBody ParamTo param){
|
||||||
MPJLambdaWrapper<ShopProduct> wrapper = new MPJLambdaWrapper<>();
|
MPJLambdaWrapper<ShopProduct> wrapper = new MPJLambdaWrapper<>();
|
||||||
@@ -405,7 +438,7 @@ public class VisitorController {
|
|||||||
return R.ok().put("page",shopProductPage);
|
return R.ok().put("page",shopProductPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取太湖公益商品
|
//获取太湖之光文章详情
|
||||||
@RequestMapping("/getTaihuWelfareArticleDetail")
|
@RequestMapping("/getTaihuWelfareArticleDetail")
|
||||||
public R getTaihuWelfareArticleDetail(@RequestBody Map<String,Integer> map){
|
public R getTaihuWelfareArticleDetail(@RequestBody Map<String,Integer> map){
|
||||||
TaihuWelfareEntity byId = taihuWelfareService.getById(map.get("id"));
|
TaihuWelfareEntity byId = taihuWelfareService.getById(map.get("id"));
|
||||||
|
|||||||
Reference in New Issue
Block a user