|
@@ -29,7 +29,6 @@
|
|
|
<result column="music_score_content_" property="musicScoreContent"/>
|
|
|
<result column="tenant_id_" property="tenantId"/>
|
|
|
<result column="subject_id_" property="subjectId"/>
|
|
|
- <result column="memo_" property="memo"/>
|
|
|
<result column="standard_flag_" property="standardFlag" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
</resultMap>
|
|
|
|
|
@@ -40,7 +39,6 @@
|
|
|
<result column="course_schedule_id_" property="courseScheduleId"/>
|
|
|
<result column="studentCourseHomeworkId" property="studentCourseHomeworkId"/>
|
|
|
<result column="content_" property="content"/>
|
|
|
- <result column="memo_" property="memo"/>
|
|
|
<result column="expiry_date_" property="expiryDate"/>
|
|
|
<result column="completed_num_" property="completedNum"/>
|
|
|
<result column="expect_num_" property="expectNum"/>
|
|
@@ -92,7 +90,7 @@
|
|
|
INSERT INTO student_course_homework
|
|
|
(user_id_,course_schedule_id_,course_homework_id_,attachments_,score_,create_time_,
|
|
|
update_time_,remark_,status_,is_replied_,is_view_,is_replied_timely_,music_score_id_,
|
|
|
- music_score_content_,tenant_id_,standard_flag_,group_type_,memo_)
|
|
|
+ music_score_content_,tenant_id_,standard_flag_,group_type_)
|
|
|
VALUE
|
|
|
<foreach collection="list" item="homework" separator=",">
|
|
|
(#{homework.userId},#{homework.courseScheduleId},#{homework.courseHomeworkId},#{homework.attachments},
|
|
@@ -101,7 +99,7 @@
|
|
|
#{homework.isView,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{homework.isRepliedTimely},
|
|
|
#{homework.musicScoreId},#{homework.musicScoreContent},#{homework.tenantId},
|
|
|
#{homework.standardFlag,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
- #{homework.groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{homework.memo})
|
|
|
+ #{homework.groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
@@ -134,9 +132,6 @@
|
|
|
<if test="remark != null">
|
|
|
remark_ = #{remark},
|
|
|
</if>
|
|
|
- <if test="memo != null">
|
|
|
- memo_ = #{memo},
|
|
|
- </if>
|
|
|
<if test="status != null">
|
|
|
status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
@@ -167,7 +162,6 @@
|
|
|
<result column="id_" property="id"/>
|
|
|
<result column="course_schedule_id_" property="courseScheduleId"/>
|
|
|
<result column="content_" property="content"/>
|
|
|
- <result column="memo_" property="memo"/>
|
|
|
<result column="create_time_" property="createTime"/>
|
|
|
<result column="start_class_time_" property="startClassTime"/>
|
|
|
<result column="expiry_date_" property="expiryDate"/>
|
|
@@ -210,7 +204,6 @@
|
|
|
<select id="queryPage" resultMap="CourseHomeworkDto" parameterType="map">
|
|
|
SELECT
|
|
|
sch.id_,
|
|
|
- sch.memo_,
|
|
|
ch.*,
|
|
|
IF(cs.group_type_='MUSIC',mg.name_,NULL) music_group_name_,
|
|
|
cg.name_ class_group_name_,
|
|
@@ -260,8 +253,7 @@
|
|
|
sch.is_replied_,
|
|
|
sch.course_schedule_id_,
|
|
|
sch.standard_flag_,
|
|
|
- sch.submit_time_,
|
|
|
- sch.memo_
|
|
|
+ sch.submit_time_
|
|
|
FROM course_homework ch
|
|
|
LEFT JOIN student_course_homework sch ON ch.id_ = sch.course_homework_id_
|
|
|
LEFT JOIN music_group mg ON ch.music_group_id_ = mg.id_
|
|
@@ -347,7 +339,6 @@
|
|
|
<result column="username_" property="studentName"/>
|
|
|
<result column="phone_" property="phone"/>
|
|
|
<result column="subject_name_" property="subjectNames"/>
|
|
|
- <result column="memo_" property="memo"/>
|
|
|
<result column="attachments_" property="url"/>
|
|
|
<result column="is_replied_" property="isReplied"/>
|
|
|
<result column="is_view_" property="isView"/>
|
|
@@ -355,7 +346,7 @@
|
|
|
<result column="submit_time_" property="submitTime"/>
|
|
|
</resultMap>
|
|
|
<select id="findStudentCourseHomeworks" resultMap="StudentCourseHomeworkDtoMap">
|
|
|
- SELECT sch.id_ student_course_homework_id_,sch.attachments_,sch.is_replied_,sch.is_view_,sch.memo_,
|
|
|
+ SELECT sch.id_ student_course_homework_id_,sch.attachments_,sch.is_replied_,sch.is_view_,
|
|
|
sch.update_time_,cssp.user_id_,su.username_,su.phone_,sch.submit_time_,s.name_ subject_name_
|
|
|
FROM student_course_homework sch
|
|
|
LEFT JOIN course_schedule_student_payment cssp ON sch.course_schedule_id_ = cssp.course_schedule_id_ AND cssp.user_id_ =
|
|
@@ -372,7 +363,6 @@
|
|
|
<result property="studentCourseHomeworkId" column="student_course_homework_id_"/>
|
|
|
<result property="courseScheduleId" column="course_schedule_id_"/>
|
|
|
<result property="courseName" column="course_name_"/>
|
|
|
- <result property="memo" column="memo_"/>
|
|
|
<result property="startClassTime" column="start_class_time_"/>
|
|
|
<result property="teacherId" column="actual_teacher_id_"/>
|
|
|
<result property="status" column="status_"/>
|
|
@@ -391,7 +381,6 @@
|
|
|
sch.id_ student_course_homework_id_,
|
|
|
sch.course_schedule_id_,
|
|
|
cs.name_ course_name_,
|
|
|
- sch.memo_,
|
|
|
CONCAT(cs.class_date_,' ',cs.start_class_time_) start_class_time_,
|
|
|
CONCAT(cs.class_date_,' ',cs.end_class_time_) endClassTime,
|
|
|
cs.actual_teacher_id_,
|
|
@@ -540,7 +529,6 @@
|
|
|
<result column="courseName" property="courseName"/>
|
|
|
<result column="createTime" property="createTime"/>
|
|
|
<result column="teacherName" property="teacherName"/>
|
|
|
- <result column="memo_" property="memo"/>
|
|
|
<result column="content" property="content"/>
|
|
|
<result column="status" property="status" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
<result column="isReplied" property="isReplied" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
@@ -556,8 +544,7 @@
|
|
|
ch.content_ content,
|
|
|
sch.status_ status,
|
|
|
sch.is_replied_ isReplied,
|
|
|
- sch.is_view_ isView,
|
|
|
- sch.memo_
|
|
|
+ sch.is_view_ isView
|
|
|
FROM student_course_homework sch
|
|
|
LEFT JOIN course_homework ch ON ch.id_ = sch.course_homework_id_
|
|
|
LEFT JOIN course_schedule cs ON cs.id_ = sch.course_schedule_id_
|
|
@@ -601,8 +588,7 @@
|
|
|
COUNT( sch.user_id_ ) exceptStudentNum,
|
|
|
SUM( sch.status_ ) submitStudentNum,
|
|
|
SUM( sch.is_replied_ ) repliedStudentNum,
|
|
|
- sch.music_score_id_ musicScoreId,
|
|
|
- sch.memo_ memo
|
|
|
+ sch.music_score_id_ musicScoreId
|
|
|
FROM
|
|
|
course_homework ch
|
|
|
LEFT JOIN music_group mg ON mg.id_ = ch.music_group_id_
|