Commit 5782105c authored by liuyang's avatar liuyang

fixed bug

parent c428f3e8
......@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.qkdata.biz.enums.QuestionStatusEnum;
import lombok.Data;
import java.time.LocalDateTime;
/**
* 问题数据对象
*/
......@@ -29,6 +31,10 @@ public class QuestionModel {
* 课程名称
*/
private String courseName;
/**
* 教师名称
*/
private String teacherName;
/**
* 课程封面url
*/
......@@ -49,5 +55,6 @@ public class QuestionModel {
* 问题状态
*/
private QuestionStatusEnum status;
private LocalDateTime createTime;
}
......@@ -53,6 +53,7 @@
u.nick_name,
q.course_id,
c.`name` course_name,
t.`name` teacher_name,
c.logo_url course_logo_url,
q.chapter_id,
chp.`name` chapter_name,
......@@ -64,6 +65,7 @@
INNER JOIN sys_user u on q.user_id = u.id
INNER JOIN course c on q.course_id = c.id
INNER JOIN course_chapter chp on q.chapter_id = chp.id
INNER JOIN teacher t on c.teacher_id = t.id
where q.id = #{questionId}
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment