From 5184d8ef7c57302b5dd9c32c16efa6c144f3bf40 Mon Sep 17 00:00:00 2001 From: xiaoCJ <406612557@qq.com> Date: Wed, 3 Jan 2024 17:53:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=80=80=E5=87=BA=E6=97=B6?= =?UTF-8?q?=E6=9C=BA=E8=A1=A8=EF=BC=8C=E5=AE=8C=E6=88=90=E6=8A=95=E8=B5=84?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E9=A1=B5=E9=9D=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/generatorConfig.xml | 14 +-- src/main/resources/mappers/UserMapper.xml | 138 ++++++++++++++++------ 2 files changed, 111 insertions(+), 41 deletions(-) diff --git a/src/main/resources/generatorConfig.xml b/src/main/resources/generatorConfig.xml index 46a3ba6..548722b 100644 --- a/src/main/resources/generatorConfig.xml +++ b/src/main/resources/generatorConfig.xml @@ -42,21 +42,21 @@ - + - + - - + + - + - + - +
diff --git a/src/main/resources/mappers/UserMapper.xml b/src/main/resources/mappers/UserMapper.xml index 26074ae..7132d3f 100644 --- a/src/main/resources/mappers/UserMapper.xml +++ b/src/main/resources/mappers/UserMapper.xml @@ -14,6 +14,10 @@ + + + + @@ -74,9 +78,17 @@ - userid, name, student_id, class_name, class_id, username, password, phone, role_id, - create_time, school_id, school_name + userid, name, student_id, class_name, class_id, username, password, phone, role_id, + create_time, school_id, school_name, un, dis, access_token, login_type + + + @@ -243,6 +281,18 @@ school_name = #{record.schoolName,jdbcType=VARCHAR}, + + un = #{record.un,jdbcType=VARCHAR}, + + + dis = #{record.dis,jdbcType=VARCHAR}, + + + access_token = #{record.accessToken,jdbcType=VARCHAR}, + + + login_type = #{record.loginType,jdbcType=INTEGER}, + @@ -251,17 +301,21 @@ update wx_user set userid = #{record.userid,jdbcType=VARCHAR}, - name = #{record.name,jdbcType=VARCHAR}, - student_id = #{record.studentId,jdbcType=VARCHAR}, - class_name = #{record.className,jdbcType=VARCHAR}, - class_id = #{record.classId,jdbcType=VARCHAR}, - username = #{record.username,jdbcType=VARCHAR}, - password = #{record.password,jdbcType=VARCHAR}, - phone = #{record.phone,jdbcType=VARCHAR}, - role_id = #{record.roleId,jdbcType=INTEGER}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - school_id = #{record.schoolId,jdbcType=VARCHAR}, - school_name = #{record.schoolName,jdbcType=VARCHAR} + name = #{record.name,jdbcType=VARCHAR}, + student_id = #{record.studentId,jdbcType=VARCHAR}, + class_name = #{record.className,jdbcType=VARCHAR}, + class_id = #{record.classId,jdbcType=VARCHAR}, + username = #{record.username,jdbcType=VARCHAR}, + password = #{record.password,jdbcType=VARCHAR}, + phone = #{record.phone,jdbcType=VARCHAR}, + role_id = #{record.roleId,jdbcType=INTEGER}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + school_id = #{record.schoolId,jdbcType=VARCHAR}, + school_name = #{record.schoolName,jdbcType=VARCHAR}, + un = #{record.un,jdbcType=VARCHAR}, + dis = #{record.dis,jdbcType=VARCHAR}, + access_token = #{record.accessToken,jdbcType=VARCHAR}, + login_type = #{record.loginType,jdbcType=INTEGER} @@ -302,22 +356,38 @@ school_name = #{schoolName,jdbcType=VARCHAR}, + + un = #{un,jdbcType=VARCHAR}, + + + dis = #{dis,jdbcType=VARCHAR}, + + + access_token = #{accessToken,jdbcType=VARCHAR}, + + + login_type = #{loginType,jdbcType=INTEGER}, + where userid = #{userid,jdbcType=VARCHAR} update wx_user set name = #{name,jdbcType=VARCHAR}, - student_id = #{studentId,jdbcType=VARCHAR}, - class_name = #{className,jdbcType=VARCHAR}, - class_id = #{classId,jdbcType=VARCHAR}, - username = #{username,jdbcType=VARCHAR}, - password = #{password,jdbcType=VARCHAR}, - phone = #{phone,jdbcType=VARCHAR}, - role_id = #{roleId,jdbcType=INTEGER}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - school_id = #{schoolId,jdbcType=VARCHAR}, - school_name = #{schoolName,jdbcType=VARCHAR} + student_id = #{studentId,jdbcType=VARCHAR}, + class_name = #{className,jdbcType=VARCHAR}, + class_id = #{classId,jdbcType=VARCHAR}, + username = #{username,jdbcType=VARCHAR}, + password = #{password,jdbcType=VARCHAR}, + phone = #{phone,jdbcType=VARCHAR}, + role_id = #{roleId,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + school_id = #{schoolId,jdbcType=VARCHAR}, + school_name = #{schoolName,jdbcType=VARCHAR}, + un = #{un,jdbcType=VARCHAR}, + dis = #{dis,jdbcType=VARCHAR}, + access_token = #{accessToken,jdbcType=VARCHAR}, + login_type = #{loginType,jdbcType=INTEGER} where userid = #{userid,jdbcType=VARCHAR} \ No newline at end of file