|
@@ -10,7 +10,7 @@
|
|
|
<result column="item_" jdbcType="VARCHAR" property="item"/>
|
|
|
<result column="comment_" jdbcType="LONGVARCHAR" property="comment"/>
|
|
|
<result column="create_time_" jdbcType="TIMESTAMP" property="createTime"/>
|
|
|
- <result column="update_time" jdbcType="TIMESTAMP" property="up"/>
|
|
|
+ <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
<result column="student_id_" jdbcType="INTEGER" property="studentId"/>
|
|
|
<result column="subject_name_" jdbcType="VARCHAR" property="subjectName"/>
|
|
|
<result column="is_pushed_" jdbcType="INTEGER" property="isPushed"/>
|
|
@@ -28,13 +28,13 @@
|
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.CourseScheduleEvaluate" useGeneratedKeys="true"
|
|
|
keyColumn="id" keyProperty="id">
|
|
|
INSERT INTO course_schedule_evaluate (music_group_id_, class_group_id_, course_schedule_id_, music_theory_,
|
|
|
- song_,
|
|
|
- teaching_material_, teacher_id_, item_, comment_, create_time_,
|
|
|
+ song_,times_,total_minutes_,
|
|
|
+ teaching_material_, teacher_id_, item_, comment_, create_time_,update_time_,
|
|
|
student_id_list_, version_, status_)
|
|
|
values (#{musicGroupId,jdbcType=VARCHAR}, #{classGroupId,jdbcType=INTEGER}, #{courseScheduleId,jdbcType=BIGINT},
|
|
|
- #{musicTheory,jdbcType=VARCHAR}, #{song,jdbcType=VARCHAR}, #{teachingMaterial,jdbcType=VARCHAR},
|
|
|
- #{teacherId,jdbcType=INTEGER}, #{item,jdbcType=VARCHAR}, #{comment,jdbcType=LONGVARCHAR}, NOW(),
|
|
|
- #{studentIdList}, #{version,jdbcType=INTEGER}, #{status,jdbcType=TINYINT})
|
|
|
+ #{musicTheory,jdbcType=VARCHAR}, #{song,jdbcType=VARCHAR},#{times,jdbcType=INTEGER},#{totalMinutes},#{teachingMaterial,jdbcType=VARCHAR},
|
|
|
+ #{teacherId,jdbcType=INTEGER}, #{item,jdbcType=VARCHAR}, #{comment,jdbcType=LONGVARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},#{studentIdList}, #{version,jdbcType=INTEGER}, #{status,jdbcType=TINYINT})
|
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.CourseScheduleEvaluate">
|
|
@@ -80,7 +80,10 @@
|
|
|
status_ = #{status},
|
|
|
</if>
|
|
|
<if test="isPushed != null">
|
|
|
- is_pushed_ = #{isPushed}
|
|
|
+ is_pushed_ = #{isPushed},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time_ = #{updateTime}
|
|
|
</if>
|
|
|
</set>
|
|
|
WHERE id_ = #{id}
|
|
@@ -176,7 +179,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="findByGroupId" resultMap="CourseScheduleEvaluate">
|
|
|
- SELECT id_,status_,class_group_id_,version_, DATE_FORMAT(create_time_, '%Y年%m月') month_
|
|
|
+ SELECT id_,status_,class_group_id_,version_,times_,total_minutes_, DATE_FORMAT(create_time_, '%Y年%m月') month_
|
|
|
FROM course_schedule_evaluate
|
|
|
WHERE music_group_id_ = #{groupId}
|
|
|
<if test="status != null">
|