|
@@ -26,6 +26,7 @@
|
|
|
<result column="submit_time_" property="submitTime"/>
|
|
|
<result column="music_score_name_" property="musicScoreName"/>
|
|
|
<result column="music_score_id_" property="musicScoreId"/>
|
|
|
+ <result column="music_score_content_" property="musicScoreContent"/>
|
|
|
<result column="tenant_id_" property="tenantId"/>
|
|
|
</resultMap>
|
|
|
|
|
@@ -70,23 +71,25 @@
|
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.StudentCourseHomework" useGeneratedKeys="true"
|
|
|
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_,tenant_id_)
|
|
|
+ (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_)
|
|
|
VALUES(#{userId},#{courseScheduleId},#{courseHomeworkId},#{attachments},#{score},now(),now(),#{remark},
|
|
|
#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{isReplied,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
- #{isView,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{isRepliedTimely},#{musicScoreId},#{tenantId})
|
|
|
+ #{isView,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{isRepliedTimely},#{musicScoreId},#{musicScoreContent},#{tenantId})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="batchInsertStudentCourseHomeworkRecord" parameterType="java.util.List" useGeneratedKeys="true"
|
|
|
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_,tenant_id_)
|
|
|
+ update_time_,remark_,status_,is_replied_,is_view_,is_replied_timely_,music_score_id_,music_score_content_,tenant_id_)
|
|
|
VALUE
|
|
|
<foreach collection="list" item="homework" separator=",">
|
|
|
(#{homework.userId},#{homework.courseScheduleId},#{homework.courseHomeworkId},#{homework.attachments},
|
|
|
#{homework.score},now(),now(),#{homework.remark},#{homework.status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
#{homework.isReplied,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
- #{homework.isView,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{homework.isRepliedTimely},#{homework.musicScoreId},#{homework.tenantId})
|
|
|
+ #{homework.isView,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{homework.isRepliedTimely},
|
|
|
+ #{homework.musicScoreId},#{homework.musicScoreContent},#{homework.tenantId})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
@@ -97,6 +100,9 @@
|
|
|
<if test="musicScoreId != null">
|
|
|
music_score_id_ = #{musicScoreId},
|
|
|
</if>
|
|
|
+ <if test="musicScoreContent != null and musicScoreContent != ''">
|
|
|
+ music_score_content_ = #{musicScoreContent},
|
|
|
+ </if>
|
|
|
<if test="courseHomeworkId != null">
|
|
|
course_homework_id_ = #{courseHomeworkId},
|
|
|
</if>
|
|
@@ -251,6 +257,7 @@
|
|
|
SELECT #{courseHomeworkID} course_homework_id_,
|
|
|
#{courseScheduleID} course_schedule_id_,
|
|
|
#{musicScoreId} music_score_id_,
|
|
|
+ #{musicScoreContent} music_score_content_,
|
|
|
sa.user_id_,
|
|
|
0 status_,
|
|
|
0 is_replied_,
|