在线课-外部讲师报错 添加讲师类型

This commit is contained in:
670788339
2025-03-19 13:17:06 +08:00
parent ee95435d01
commit 500fb090fb
2 changed files with 5 additions and 0 deletions

View File

@@ -53,4 +53,8 @@ public class CourseTeacher extends IdBaseEntity {
@Transient
private String supplier;
/**讲师类型 1 内部讲师 2外部讲师*/
@Transient
private Integer teacherType;
}

View File

@@ -205,6 +205,7 @@ public class StudyCourseApi extends ApiBaseController{
if(t!=null) {
ct.setRemark(t.getDescription());
ct.setSupplier(t.getSupplier());
ct.setTeacherType(t.getTeacherType());
}
if(redisTemplate.opsForValue().get(ct.getTeacherId())==null){
List<String>list=new ArrayList<>();