小萌新 4 months ago
parent 4b68da7b83
commit 97c823b15c
  1. 4
      src/main/java/com/teaching/backend/model/entity/chapter/TemporaryChapter.java
  2. 4
      src/main/java/com/teaching/backend/service/impl/chapter/ChapterServiceImpl.java

@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.teaching.backend.model.entity.Knowtemp.Knowtemp;
import com.teaching.backend.model.entity.knowtmp.Knowtmp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -89,7 +89,7 @@ public class TemporaryChapter implements Serializable {
@ApiModelProperty(value = "知识点")
@TableField(exist = false)
private List<Knowtemp> knowledgePoints; // 用于存储章节下的知识点
private List<Knowtmp> knowledgePoints; // 用于存储章节下的知识点
}

@ -4,15 +4,19 @@ package com.teaching.backend.service.impl.chapter;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.teaching.backend.common.ErrorCode;
import com.teaching.backend.exception.BusinessException;
import com.teaching.backend.mapper.Knowtemp.KnowtmpMapper;
import com.teaching.backend.mapper.chapter.ChapterMapper;
import com.teaching.backend.mapper.chapter.TemporaryChapterMapper;
import com.teaching.backend.model.dto.chapter.ChapterDTO;
import com.teaching.backend.model.entity.chapter.Chapter;
import com.teaching.backend.model.entity.chapter.TemporaryChapter;
import com.teaching.backend.model.entity.knowtmp.Knowtmp;
import com.teaching.backend.model.vo.chapter.ChapterVo;
import com.teaching.backend.service.Know.KnowService;

Loading…
Cancel
Save