|
@@ -94,12 +94,12 @@
|
|
|
</select>
|
|
|
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
|
- <insert id="insert" parameterType="com.ym.mec.biz.dal.entity.ExtracurricularExercises" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
- INSERT INTO extracurricular_exercises (music_group_id_,teacher_id_,student_id_list_,batch_no_,
|
|
|
- title_,attachments_,content_,expire_date_,completed_num_,expect_num_,create_time_,update_time_,tenant_id_)
|
|
|
- VALUES(#{musicGroupId},#{teacherId},#{studentIdList},#{batchNo},#{title},#{attachments},
|
|
|
- #{content},#{expireDate},#{completedNum},#{expectNum},NOW(), NOW(),#{tenantId})
|
|
|
- </insert>
|
|
|
+ <insert id="insert" parameterType="com.ym.mec.biz.dal.entity.ExtracurricularExercises" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
+ INSERT INTO extracurricular_exercises (music_group_id_,teacher_id_,student_id_list_,batch_no_,
|
|
|
+ title_,attachments_,content_,expire_date_,completed_num_,expect_num_,create_time_,update_time_,tenant_id_,group_type_)
|
|
|
+ VALUES(#{musicGroupId},#{teacherId},#{studentIdList},#{batchNo},#{title},#{attachments},
|
|
|
+ #{content},#{expireDate},#{completedNum},#{expectNum},NOW(), NOW(),#{tenantId},#{groupType})
|
|
|
+ </insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.ExtracurricularExercises">
|
|
@@ -353,6 +353,9 @@
|
|
|
AND id_ = #{courseScheduleId}
|
|
|
</if>
|
|
|
</if>
|
|
|
+ <if test="teacherId != null">
|
|
|
+ and teacher_id_ = #{teacherId}
|
|
|
+ </if>
|
|
|
<if test="type != null">
|
|
|
and group_type_ = #{type}
|
|
|
</if>
|