留言板
课程跟商品关联字段 课程和标签关联展示列表
This commit is contained in:
@@ -27,6 +27,8 @@ public class CourseEntity {
|
|||||||
|
|
||||||
private String content;
|
private String content;
|
||||||
|
|
||||||
|
private String relationProductIds;
|
||||||
|
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
@TableLogic
|
@TableLogic
|
||||||
|
|||||||
@@ -0,0 +1,47 @@
|
|||||||
|
package com.peanut.modules.common.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@TableName("course_guestbook")
|
||||||
|
public class CourseGuestbook {
|
||||||
|
|
||||||
|
@TableId
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
private Integer courseId;
|
||||||
|
|
||||||
|
private Integer chapterId;
|
||||||
|
|
||||||
|
private Integer pid;
|
||||||
|
|
||||||
|
private Integer userId;
|
||||||
|
|
||||||
|
private Integer forUserId;
|
||||||
|
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
private String images;
|
||||||
|
|
||||||
|
private Integer support;
|
||||||
|
|
||||||
|
private Integer state;
|
||||||
|
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
@TableLogic
|
||||||
|
private Integer delFlag;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<CourseGuestbook> children;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -171,6 +171,12 @@ public class CourseController {
|
|||||||
return courseService.courseCatalogueTransfer(param);
|
return courseService.courseCatalogueTransfer(param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//查询课程被哪些标签关联
|
||||||
|
@RequestMapping("/getCourseLableLinkList")
|
||||||
|
public R getCourseLableLinkList(@RequestBody Map<String,Object> param){
|
||||||
|
return courseService.getCourseLableLinkList(param);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -28,4 +28,6 @@ public interface CourseService extends IService<CourseEntity> {
|
|||||||
List<CourseEntity> courseAndChildrenList(Map<String, Object> params);
|
List<CourseEntity> courseAndChildrenList(Map<String, Object> params);
|
||||||
|
|
||||||
R courseCatalogueTransfer(Map<String,Object> param);
|
R courseCatalogueTransfer(Map<String,Object> param);
|
||||||
|
|
||||||
|
R getCourseLableLinkList(Map<String,Object> param);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -259,6 +259,15 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, CourseEntity> impl
|
|||||||
return R.ok();
|
return R.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public R getCourseLableLinkList(Map<String, Object> param) {
|
||||||
|
LambdaQueryWrapper<CourseToMedicine> toMedicineWrapper = new LambdaQueryWrapper<>();
|
||||||
|
toMedicineWrapper.eq(CourseToMedicine::getCourseId,param.get("courseId"));
|
||||||
|
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private List<Integer> sociologyIds(Integer id){
|
private List<Integer> sociologyIds(Integer id){
|
||||||
ArrayList<Integer> integers = new ArrayList<>();
|
ArrayList<Integer> integers = new ArrayList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user