From d5547a93889877dcd9d4ce856739a0571f271b69 Mon Sep 17 00:00:00 2001 From: xiaoCJ <406612557@qq.com> Date: Tue, 21 Nov 2023 17:57:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=98=E5=BA=93=E8=A1=A8=E5=92=8C=E7=AD=94?= =?UTF-8?q?=E9=A2=98=E8=AE=B0=E5=BD=95=E8=A1=A8=E6=96=B0=E5=A2=9E=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/generatorConfig.xml | 2 +- src/main/resources/mappers/TopicsMapper.xml | 35 +++++++++++++++------ 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/src/main/resources/generatorConfig.xml b/src/main/resources/generatorConfig.xml index 76e9959..e485cc3 100644 --- a/src/main/resources/generatorConfig.xml +++ b/src/main/resources/generatorConfig.xml @@ -47,7 +47,7 @@ - +
diff --git a/src/main/resources/mappers/TopicsMapper.xml b/src/main/resources/mappers/TopicsMapper.xml index 391f7b9..11b673c 100644 --- a/src/main/resources/mappers/TopicsMapper.xml +++ b/src/main/resources/mappers/TopicsMapper.xml @@ -3,6 +3,7 @@ + @@ -71,7 +72,7 @@ - topic_id, topic_type, source, module, answer, school_id + topic_id, choices, topic_type, source, module, answer, school_id topic_content @@ -125,12 +126,12 @@ - insert into sys_topics (topic_id, topic_type, source, - module, answer, school_id, - topic_content) - values (#{topicId,jdbcType=VARCHAR}, #{topicType,jdbcType=VARCHAR}, #{source,jdbcType=VARCHAR}, - #{module,jdbcType=VARCHAR}, #{answer,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR}, - #{topicContent,jdbcType=LONGVARCHAR}) + insert into sys_topics (topic_id, choices, topic_type, + source, module, answer, + school_id, topic_content) + values (#{topicId,jdbcType=VARCHAR}, #{choices,jdbcType=VARCHAR}, #{topicType,jdbcType=VARCHAR}, + #{source,jdbcType=VARCHAR}, #{module,jdbcType=VARCHAR}, #{answer,jdbcType=VARCHAR}, + #{schoolId,jdbcType=VARCHAR}, #{topicContent,jdbcType=LONGVARCHAR}) insert into sys_topics @@ -138,6 +139,9 @@ topic_id, + + choices, + topic_type, @@ -161,6 +165,9 @@ #{topicId,jdbcType=VARCHAR}, + + #{choices,jdbcType=VARCHAR}, + #{topicType,jdbcType=VARCHAR}, @@ -193,6 +200,9 @@ topic_id = #{record.topicId,jdbcType=VARCHAR}, + + choices = #{record.choices,jdbcType=VARCHAR}, + topic_type = #{record.topicType,jdbcType=VARCHAR}, @@ -219,6 +229,7 @@ update sys_topics set topic_id = #{record.topicId,jdbcType=VARCHAR}, + choices = #{record.choices,jdbcType=VARCHAR}, topic_type = #{record.topicType,jdbcType=VARCHAR}, source = #{record.source,jdbcType=VARCHAR}, module = #{record.module,jdbcType=VARCHAR}, @@ -232,6 +243,7 @@ update sys_topics set topic_id = #{record.topicId,jdbcType=VARCHAR}, + choices = #{record.choices,jdbcType=VARCHAR}, topic_type = #{record.topicType,jdbcType=VARCHAR}, source = #{record.source,jdbcType=VARCHAR}, module = #{record.module,jdbcType=VARCHAR}, @@ -244,6 +256,9 @@ update sys_topics + + choices = #{choices,jdbcType=VARCHAR}, + topic_type = #{topicType,jdbcType=VARCHAR}, @@ -267,7 +282,8 @@ update sys_topics - set topic_type = #{topicType,jdbcType=VARCHAR}, + set choices = #{choices,jdbcType=VARCHAR}, + topic_type = #{topicType,jdbcType=VARCHAR}, source = #{source,jdbcType=VARCHAR}, module = #{module,jdbcType=VARCHAR}, answer = #{answer,jdbcType=VARCHAR}, @@ -277,7 +293,8 @@ update sys_topics - set topic_type = #{topicType,jdbcType=VARCHAR}, + set choices = #{choices,jdbcType=VARCHAR}, + topic_type = #{topicType,jdbcType=VARCHAR}, source = #{source,jdbcType=VARCHAR}, module = #{module,jdbcType=VARCHAR}, answer = #{answer,jdbcType=VARCHAR},