- * 前端控制器 - *
- * - * @author author - * @since 2024-06-20 - */ -@Api(tags = "知识点章节关系") -@RestController -@RequestMapping("/know-relationship") -public class KnowRelationshipController { - - @Autowired - private IKnowRelationshipService knowRelationshipService; - @ApiOperation("添加课程知识点关系") - @PostMapping() - public BaseResponse- * Mapper 接口 - *
- * - * @author author - * @since 2024-06-20 - */ -@Mapper -public interface KnowRelationshipMapper extends BaseMapper- * - *
- * - * @author author - * @since 2024-06-20 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Accessors(chain = true) -@TableName("know_relationship") -@ApiModel(value="KnowRelationship对象", description="") -public class KnowRelationship implements Serializable { - - private static final long serialVersionUID = 1L; - - - @ApiModelProperty(value = "章节id") - @TableField("chapterId") - private String chapterId; - - @ApiModelProperty(value = "课程id") - @TableField("courseId") - private String courseId; - - @ApiModelProperty(value = "知识点id") - @TableField("knowId") - private int knowId; - - -} diff --git a/src/main/java/com/teaching/backend/service/impl/courses/CoursesServiceImpl.java b/src/main/java/com/teaching/backend/service/impl/courses/CoursesServiceImpl.java index 1efe8c2..a104d6d 100644 --- a/src/main/java/com/teaching/backend/service/impl/courses/CoursesServiceImpl.java +++ b/src/main/java/com/teaching/backend/service/impl/courses/CoursesServiceImpl.java @@ -12,7 +12,6 @@ import com.teaching.backend.common.ErrorCode; import com.teaching.backend.exception.BusinessException; import com.teaching.backend.mapper.chapter.ChapterMapper; import com.teaching.backend.mapper.courses.*; -import com.teaching.backend.mapper.know.KnowRelationshipMapper; import com.teaching.backend.mapper.records.LearningRecordsMapper; import com.teaching.backend.mapper.umsAdmin.UmsTeacherMapper; import com.teaching.backend.mapper.umsAdmin.UmsUserMapper; @@ -20,7 +19,6 @@ import com.teaching.backend.model.dto.courses.CoursesDTO; import com.teaching.backend.model.dto.courses.PageDTO; import com.teaching.backend.model.entity.chapter.Chapter; import com.teaching.backend.model.entity.courses.*; -import com.teaching.backend.model.entity.know.KnowRelationship; import com.teaching.backend.model.entity.records.LearningRecords; import com.teaching.backend.model.entity.umsAdmin.UmsTeacher; import com.teaching.backend.model.entity.umsAdmin.UmsUser; @@ -43,7 +41,6 @@ import java.math.BigDecimal; import java.time.LocalDateTime; import java.util.*; import java.util.stream.Collectors; -import java.util.stream.Stream; /** *
@@ -65,8 +62,6 @@ public class CoursesServiceImpl extends ServiceImpl
- * 服务实现类
- *