From 9701771c4504b9357b0d97bc463d033de35ba7b6 Mon Sep 17 00:00:00 2001 From: wenyu441069198 <14186472+wenyu441069198@user.noreply.gitee.com> Date: Fri, 16 Aug 2024 16:12:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=AD=A6=E4=B9=A0=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=8A=A0=E4=BA=86teacher=5Fuser=5Fid=E7=9A=84?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/teaching/backend/model/entity/cms/CmsEssay.java | 3 --- .../backend/model/entity/courses/CourseLearningNumber.java | 4 ++++ .../backend/model/entity/records/CourseLearningRecord.java | 4 ++++ .../service/impl/records/CourseLearningRecordServiceImpl.java | 1 + 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/teaching/backend/model/entity/cms/CmsEssay.java b/src/main/java/com/teaching/backend/model/entity/cms/CmsEssay.java index 5038816..cc381f2 100644 --- a/src/main/java/com/teaching/backend/model/entity/cms/CmsEssay.java +++ b/src/main/java/com/teaching/backend/model/entity/cms/CmsEssay.java @@ -49,9 +49,6 @@ public class CmsEssay implements Serializable { @ApiModelProperty(value = "浏览次数") private Integer readingNumber; - @ApiModelProperty(value = "评论条数") - private Integer commentCount; - @ApiModelProperty(value = "所属栏目id") private Integer categoryId; diff --git a/src/main/java/com/teaching/backend/model/entity/courses/CourseLearningNumber.java b/src/main/java/com/teaching/backend/model/entity/courses/CourseLearningNumber.java index 72566b0..e462f90 100644 --- a/src/main/java/com/teaching/backend/model/entity/courses/CourseLearningNumber.java +++ b/src/main/java/com/teaching/backend/model/entity/courses/CourseLearningNumber.java @@ -36,6 +36,10 @@ public class CourseLearningNumber implements Serializable { @TableField("course_id") private String courseId; + @ApiModelProperty(value = "老师用户id") + @TableField("teacher_user_id") + private String teacherUserId; + @ApiModelProperty(value = "课程学习人数") @TableField("number") private Integer number; diff --git a/src/main/java/com/teaching/backend/model/entity/records/CourseLearningRecord.java b/src/main/java/com/teaching/backend/model/entity/records/CourseLearningRecord.java index 1617d15..7afccf3 100644 --- a/src/main/java/com/teaching/backend/model/entity/records/CourseLearningRecord.java +++ b/src/main/java/com/teaching/backend/model/entity/records/CourseLearningRecord.java @@ -54,6 +54,10 @@ public class CourseLearningRecord implements Serializable { @TableField("img") private String img; + @ApiModelProperty(value = "老师用户id") + @TableField("teacher_user_id") + private String teacherUserId; + @ApiModelProperty(value = "最近学习时间") @TableField("times") private LocalDateTime times; diff --git a/src/main/java/com/teaching/backend/service/impl/records/CourseLearningRecordServiceImpl.java b/src/main/java/com/teaching/backend/service/impl/records/CourseLearningRecordServiceImpl.java index fb3e253..1193803 100644 --- a/src/main/java/com/teaching/backend/service/impl/records/CourseLearningRecordServiceImpl.java +++ b/src/main/java/com/teaching/backend/service/impl/records/CourseLearningRecordServiceImpl.java @@ -74,6 +74,7 @@ public class CourseLearningRecordServiceImpl extends ServiceImpl