开课添加简介

beetlsql3-dev
Mlxa0324 2 years ago
parent e39b51991f
commit 3aba4ba443

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -28554,26 +28554,27 @@ alter table teacher_merge_application comment '教师-关联-我的应用';
-- Table structure for teacher_open_course
-- ----------------------------
DROP TABLE IF EXISTS `teacher_open_course`;
CREATE TABLE `teacher_open_course` (
CREATE TABLE `teacher_open_course` (
`teacher_open_course_id` bigint(20) NOT NULL COMMENT '课程开课ID',
`teacher_open_course_title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '开课名称',
`teacher_open_course_code` varchar(4000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '课程编码',
`teacher_open_course_cover` varchar(4000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '封面列表JSON格式: {封面URLis默认封面}',
`teacher_open_course_status` int(11) NULL DEFAULT NULL COMMENT '开课状态1启用 2禁用',
`start_time` datetime NULL DEFAULT NULL COMMENT '开课时间',
`end_time` datetime NULL DEFAULT NULL COMMENT '结课时间',
`org_id` bigint(20) NULL DEFAULT NULL COMMENT '组织ID',
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户ID',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
`teacher_open_course_title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '开课名称',
`teacher_open_course_code` varchar(4000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '课程编码',
`teacher_open_course_cover` varchar(4000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '封面列表JSON格式: {封面URLis默认封面}',
`teacher_open_course_summary` text COMMENT '简介',
`teacher_open_course_status` int(11) DEFAULT NULL COMMENT '开课状态1启用 2禁用',
`start_time` datetime DEFAULT NULL COMMENT '开课时间',
`end_time` datetime DEFAULT NULL COMMENT '结课时间',
`org_id` bigint(20) DEFAULT NULL COMMENT '组织ID',
`user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`teacher_open_course_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '教师-我的课程-开课' ROW_FORMAT = DYNAMIC;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='教师-我的课程-开课';
-- ----------------------------
-- Records of teacher_open_course
-- ----------------------------
INSERT INTO `teacher_open_course` VALUES (1569699103338831872, '602', '400', 'http://baidu.com', 1, '2022-09-12 00:00:00', '2022-10-12 00:00:00', 1, 1, '2022-09-13 22:46:44');
INSERT INTO `teacher_open_course` VALUES (1569699665614643200, '开课吧', 'code_kaike', 'fengmian', 1, '2022-09-13 00:00:00', '2022-09-30 00:00:00', 1, 1, '2022-09-13 22:48:59');
INSERT INTO `teacher_open_course` VALUES (1569704771349291008, '399', '284', 'http://baidu.com', 1, '2022-09-12 00:00:00', '2022-10-12 00:00:00', 1, 1, '2022-09-13 23:09:16');
INSERT INTO `teacher_open_course` VALUES (1569699103338831872, '602', '400', 'http://baidu.com', '我是简介1', 1, '2022-09-12 00:00:00', '2022-10-12 00:00:00', 1, 1, '2022-09-13 22:46:44');
INSERT INTO `teacher_open_course` VALUES (1569699665614643200, '开课吧', 'code_kaike', 'fengmian', '我是简介2', 1, '2022-09-13 00:00:00', '2022-09-30 00:00:00', 1, 1, '2022-09-13 22:48:59');
INSERT INTO `teacher_open_course` VALUES (1569704771349291008, '399', '284', 'http://baidu.com', '我是简介3', 1, '2022-09-12 00:00:00', '2022-10-12 00:00:00', 1, 1, '2022-09-13 23:09:16');
-- ----------------------------
-- Table structure for teacher_open_course_chat_log

@ -35,6 +35,10 @@ public class TeacherOpenCourse extends BaseEntity{
//封面列表JSON格式: {封面URLis默认封面}
// 也可以是 逗号隔开的图片列表,第一个是默认封面。只需要控制图片保存时候的位置。
private String teacherOpenCourseCover ;
// 简介
private String teacherOpenCourseSummary;
//开课状态1启用 2禁用
@Dict(type="global_open_status")
@ -224,4 +228,12 @@ public class TeacherOpenCourse extends BaseEntity{
public void setTeacherOpenCourseMergeTeacherAuthCode(String teacherOpenCourseMergeTeacherAuthCode) {
this.teacherOpenCourseMergeTeacherAuthCode = teacherOpenCourseMergeTeacherAuthCode;
}
public String getTeacherOpenCourseSummary() {
return teacherOpenCourseSummary;
}
public void setTeacherOpenCourseSummary(String teacherOpenCourseSummary) {
this.teacherOpenCourseSummary = teacherOpenCourseSummary;
}
}

@ -70,6 +70,13 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
hideField :false,
hide:$.isEmpty(sx_['teacherOpenCourseCover'])?false:sx_['teacherOpenCourseCover'],
},
{
field : 'teacherOpenCourseSummary',
title : '简介',
align:"center",
hideField :false,
hide:$.isEmpty(sx_['teacherOpenCourseSummary'])?false:sx_['teacherOpenCourseSummary'],
},
{
field : 'teacherOpenCourseStatusText', //数据字典类型为 global_open_status
// title : '开课状态1启用 2禁用',

@ -27,6 +27,12 @@
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">简介</label>
<div class="layui-input-inline">
<input type="text" id="teacherOpenCourseSummary" name="teacherOpenCourseSummary" value="${teacherOpenCourse.teacherOpenCourseSummary}" class="layui-input" >
</div>
</div>
<div class="layui-inline">
<!-- <label class="layui-form-label">开课状态1启用 2禁用</label>-->
<label class="layui-form-label">开课状态</label>
<div class="layui-input-inline">

@ -26,6 +26,12 @@
<input type="text" id="teacherOpenCourseCover" name="teacherOpenCourseCover" value="${teacherOpenCourse.teacherOpenCourseCover}" class="layui-input" >
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">简介</label>
<div class="layui-input-inline">
<input type="text" id="teacherOpenCourseSummary" name="teacherOpenCourseSummary" value="${teacherOpenCourse.teacherOpenCourseSummary}" class="layui-input" >
</div>
</div>
<div class="layui-inline">
<!-- <label class="layui-form-label">开课状态1启用 2禁用</label>-->
<label class="layui-form-label">开课状态</label>

Loading…
Cancel
Save