|
@@ -40,6 +40,7 @@
|
|
|
<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"/>
|
|
@@ -90,7 +91,8 @@
|
|
|
keyColumn="id" keyProperty="id">
|
|
|
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_)
|
|
|
+ update_time_,remark_,status_,is_replied_,is_view_,is_replied_timely_,music_score_id_,
|
|
|
+ music_score_content_,tenant_id_,standard_flag_,group_type_,memo_)
|
|
|
VALUE
|
|
|
<foreach collection="list" item="homework" separator=",">
|
|
|
(#{homework.userId},#{homework.courseScheduleId},#{homework.courseHomeworkId},#{homework.attachments},
|
|
@@ -99,7 +101,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.groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{homework.memo})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
@@ -132,6 +134,9 @@
|
|
|
<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>
|
|
@@ -162,6 +167,7 @@
|
|
|
<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"/>
|
|
@@ -204,6 +210,7 @@
|
|
|
<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_,
|
|
@@ -253,7 +260,8 @@
|
|
|
sch.is_replied_,
|
|
|
sch.course_schedule_id_,
|
|
|
sch.standard_flag_,
|
|
|
- sch.submit_time_
|
|
|
+ sch.submit_time_,
|
|
|
+ sch.memo_
|
|
|
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_
|
|
@@ -339,6 +347,7 @@
|
|
|
<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"/>
|
|
@@ -346,7 +355,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_,
|
|
|
+ SELECT sch.id_ student_course_homework_id_,sch.attachments_,sch.is_replied_,sch.is_view_,sch.memo_,
|
|
|
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_ =
|
|
@@ -363,6 +372,7 @@
|
|
|
<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_"/>
|
|
@@ -381,6 +391,7 @@
|
|
|
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_,
|
|
@@ -529,6 +540,7 @@
|
|
|
<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"/>
|
|
@@ -544,7 +556,8 @@
|
|
|
ch.content_ content,
|
|
|
sch.status_ status,
|
|
|
sch.is_replied_ isReplied,
|
|
|
- sch.is_view_ isView
|
|
|
+ sch.is_view_ isView,
|
|
|
+ sch.memo_
|
|
|
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_
|
|
@@ -588,7 +601,8 @@
|
|
|
COUNT( sch.user_id_ ) exceptStudentNum,
|
|
|
SUM( sch.status_ ) submitStudentNum,
|
|
|
SUM( sch.is_replied_ ) repliedStudentNum,
|
|
|
- sch.music_score_id_ musicScoreId
|
|
|
+ sch.music_score_id_ musicScoreId,
|
|
|
+ sch.memo_ memo
|
|
|
FROM
|
|
|
course_homework ch
|
|
|
LEFT JOIN music_group mg ON mg.id_ = ch.music_group_id_
|
|
@@ -710,7 +724,6 @@
|
|
|
<select id="findStudentCourseHomeworkByCourse" resultMap="StudentCourseHomework">
|
|
|
SELECT
|
|
|
sch.*,
|
|
|
- ch.memo_,
|
|
|
su.username_,
|
|
|
su.avatar_,
|
|
|
su.phone_,
|