From 542d4e4fb9c0d1510015a35f44e9c5971d0d926d Mon Sep 17 00:00:00 2001 From: xiaoCJ <406612557@qq.com> Date: Mon, 28 Oct 2024 12:29:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=8F=AD=E7=BA=A7=E8=A1=A8?= =?UTF-8?q?=E7=BB=93=E6=9E=84=EF=BC=8C=E9=83=A8=E5=88=86=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/StuClassMapper.xml | 73 ++++++++++++-------- 1 file changed, 45 insertions(+), 28 deletions(-) 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