|
@@ -15,6 +15,7 @@
|
|
|
<result column="user_id_" property="userId" />
|
|
|
<result column="teacher_id_" property="teacherId" />
|
|
|
<result column="status_" property="status" />
|
|
|
+ <result column="remark_" property="remark" />
|
|
|
<result column="create_time_" property="createTime" />
|
|
|
</resultMap>
|
|
|
|
|
@@ -35,40 +36,45 @@
|
|
|
SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL
|
|
|
</selectKey>
|
|
|
-->
|
|
|
- INSERT INTO student_roll_call (id_,music_group_id_,subject_id_,class_group_id_,course_schedule_id_,user_id_,teacher_id_,status_,create_time_) VALUES(#{id},#{musicGroupId},#{subjectId},#{classGroupId},#{courseScheduleId},#{userId},#{teacherId},#{status},#{createTime})
|
|
|
+ INSERT INTO student_roll_call (id_,music_group_id_,subject_id_,class_group_id_,course_schedule_id_,user_id_,teacher_id_,status_,remark_,create_time_) VALUES(#{id},#{musicGroupId},#{subjectId},#{classGroupId},#{courseScheduleId},#{userId},#{teacherId},#{status},#{remark},#{createTime})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
|
<update id="update" parameterType="com.ym.mec.web.dal.entity.StudentRollCall">
|
|
|
- UPDATE student_roll_call <set>
|
|
|
-<if test="subjectId != null">
|
|
|
-subject_id_ = #{subjectId},
|
|
|
-</if>
|
|
|
-<if test="status != null">
|
|
|
-status_ = #{status},
|
|
|
-</if>
|
|
|
-<if test="userId != null">
|
|
|
-user_id_ = #{userId},
|
|
|
-</if>
|
|
|
-<if test="id != null">
|
|
|
-id_ = #{id},
|
|
|
-</if>
|
|
|
-<if test="classGroupId != null">
|
|
|
-class_group_id_ = #{classGroupId},
|
|
|
-</if>
|
|
|
-<if test="teacherId != null">
|
|
|
-teacher_id_ = #{teacherId},
|
|
|
-</if>
|
|
|
-<if test="courseScheduleId != null">
|
|
|
-course_schedule_id_ = #{courseScheduleId},
|
|
|
-</if>
|
|
|
-<if test="musicGroupId != null">
|
|
|
-music_group_id_ = #{musicGroupId},
|
|
|
-</if>
|
|
|
-<if test="createTime != null">
|
|
|
-create_time_ = #{createTime},
|
|
|
-</if>
|
|
|
-</set> WHERE id_ = #{id}
|
|
|
+ UPDATE student_roll_call
|
|
|
+ <set>
|
|
|
+ <if test="subjectId != null">
|
|
|
+ subject_id_ = #{subjectId},
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ status_ = #{status},
|
|
|
+ </if>
|
|
|
+ <if test="userId != null">
|
|
|
+ user_id_ = #{userId},
|
|
|
+ </if>
|
|
|
+ <if test="id != null">
|
|
|
+ id_ = #{id},
|
|
|
+ </if>
|
|
|
+ <if test="classGroupId != null">
|
|
|
+ class_group_id_ = #{classGroupId},
|
|
|
+ </if>
|
|
|
+ <if test="teacherId != null">
|
|
|
+ teacher_id_ = #{teacherId},
|
|
|
+ </if>
|
|
|
+ <if test="courseScheduleId != null">
|
|
|
+ course_schedule_id_ = #{courseScheduleId},
|
|
|
+ </if>
|
|
|
+ <if test="musicGroupId != null">
|
|
|
+ music_group_id_ = #{musicGroupId},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time_ = #{createTime},
|
|
|
+ </if>
|
|
|
+ <if test="remark != null">
|
|
|
+ remark_ = #{remark},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ WHERE id_ = #{id}
|
|
|
</update>
|
|
|
|
|
|
<!-- 根据主键删除一条记录 -->
|