diff --git a/src/main/resources/mapper/StuClassMapper.xml b/src/main/resources/mapper/StuClassMapper.xml index 0f03a86..2b1abd8 100644 --- a/src/main/resources/mapper/StuClassMapper.xml +++ b/src/main/resources/mapper/StuClassMapper.xml @@ -2,7 +2,8 @@ - + + @@ -67,7 +68,7 @@ - class_id, class_name, create_time, school_name, system_owner + id, class_id, class_name, create_time, school_name, system_owner delete from stu_class - where class_id = #{classId,jdbcType=VARCHAR} + where id = #{id,jdbcType=VARCHAR} delete from stu_class @@ -100,14 +101,19 @@ - insert into stu_class (class_id, class_name, create_time, - school_name, system_owner) - values (#{classId,jdbcType=VARCHAR}, #{className,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, - #{schoolName,jdbcType=VARCHAR}, #{systemOwner,jdbcType=VARCHAR}) + insert into stu_class (id, class_id, class_name, + create_time, school_name, system_owner + ) + values (#{id,jdbcType=VARCHAR}, #{classId,jdbcType=VARCHAR}, #{className,jdbcType=VARCHAR}, + #{createTime,jdbcType=TIMESTAMP}, #{schoolName,jdbcType=VARCHAR}, #{systemOwner,jdbcType=VARCHAR} + ) insert into stu_class + + id, + class_id, @@ -125,6 +131,9 @@ + + #{id,jdbcType=VARCHAR}, + #{classId,jdbcType=VARCHAR}, @@ -151,6 +160,9 @@ update stu_class + + id = #{record.id,jdbcType=VARCHAR}, + class_id = #{record.classId,jdbcType=VARCHAR}, @@ -173,7 +185,8 @@ update stu_class - set class_id = #{record.classId,jdbcType=VARCHAR}, + set id = #{record.id,jdbcType=VARCHAR}, + class_id = #{record.classId,jdbcType=VARCHAR}, class_name = #{record.className,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, school_name = #{record.schoolName,jdbcType=VARCHAR}, @@ -185,6 +198,9 @@ update stu_class + + class_id = #{classId,jdbcType=VARCHAR}, + class_name = #{className,jdbcType=VARCHAR}, @@ -198,32 +214,33 @@ system_owner = #{systemOwner,jdbcType=VARCHAR}, - where class_id = #{classId,jdbcType=VARCHAR} + where id = #{id,jdbcType=VARCHAR} update stu_class - set class_name = #{className,jdbcType=VARCHAR}, + set class_id = #{classId,jdbcType=VARCHAR}, + class_name = #{className,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, school_name = #{schoolName,jdbcType=VARCHAR}, system_owner = #{systemOwner,jdbcType=VARCHAR} - where class_id = #{classId,jdbcType=VARCHAR} + where id = #{id,jdbcType=VARCHAR} - + + + + + + + + - + + + + + + + + \ No newline at end of file