From 8ef5213c8a3eec99aa8cb4acaacaf6a702e38f4f Mon Sep 17 00:00:00 2001 From: xiaoCJ <406612557@qq.com> Date: Fri, 22 Dec 2023 16:13:56 +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 --- .../resources/mappers/TopicRecordMapper.xml | 90 +++++++++---------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/src/main/resources/mappers/TopicRecordMapper.xml b/src/main/resources/mappers/TopicRecordMapper.xml index 66e9ddc..998eca7 100644 --- a/src/main/resources/mappers/TopicRecordMapper.xml +++ b/src/main/resources/mappers/TopicRecordMapper.xml @@ -2,7 +2,7 @@ - + @@ -75,7 +75,7 @@ - id, topic_id, flow_id, module, topic_content, topic_type, choicesA, choicesB, choicesC, + id, topic_id, flow_id, module, topic_content, topic_type, choicesA, choicesB, choicesC, choicesD, choicesE, user_answer, answer - + select from topic_record - where id = #{id,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} - + delete from topic_record - where id = #{id,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} delete from topic_record @@ -109,16 +109,16 @@ - insert into topic_record (id, topic_id, flow_id, - module, topic_content, topic_type, - choicesA, choicesB, choicesC, - choicesD, choicesE, user_answer, - answer) - values (#{id,jdbcType=VARCHAR}, #{topicId,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR}, - #{module,jdbcType=VARCHAR}, #{topicContent,jdbcType=VARCHAR}, #{topicType,jdbcType=VARCHAR}, - #{choicesa,jdbcType=VARCHAR}, #{choicesb,jdbcType=VARCHAR}, #{choicesc,jdbcType=VARCHAR}, - #{choicesd,jdbcType=VARCHAR}, #{choicese,jdbcType=VARCHAR}, #{userAnswer,jdbcType=VARCHAR}, - #{answer,jdbcType=VARCHAR}) + insert into topic_record (id, topic_id, flow_id, + module, topic_content, topic_type, + choicesA, choicesB, choicesC, + choicesD, choicesE, user_answer, + answer) + values (#{id,jdbcType=INTEGER}, #{topicId,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR}, + #{module,jdbcType=VARCHAR}, #{topicContent,jdbcType=VARCHAR}, #{topicType,jdbcType=VARCHAR}, + #{choicesa,jdbcType=VARCHAR}, #{choicesb,jdbcType=VARCHAR}, #{choicesc,jdbcType=VARCHAR}, + #{choicesd,jdbcType=VARCHAR}, #{choicese,jdbcType=VARCHAR}, #{userAnswer,jdbcType=VARCHAR}, + #{answer,jdbcType=VARCHAR}) insert into topic_record @@ -165,7 +165,7 @@ - #{id,jdbcType=VARCHAR}, + #{id,jdbcType=INTEGER}, #{topicId,jdbcType=VARCHAR}, @@ -215,7 +215,7 @@ update topic_record - id = #{record.id,jdbcType=VARCHAR}, + id = #{record.id,jdbcType=INTEGER}, topic_id = #{record.topicId,jdbcType=VARCHAR}, @@ -260,19 +260,19 @@ update topic_record - set id = #{record.id,jdbcType=VARCHAR}, - topic_id = #{record.topicId,jdbcType=VARCHAR}, - flow_id = #{record.flowId,jdbcType=VARCHAR}, - module = #{record.module,jdbcType=VARCHAR}, - topic_content = #{record.topicContent,jdbcType=VARCHAR}, - topic_type = #{record.topicType,jdbcType=VARCHAR}, - choicesA = #{record.choicesa,jdbcType=VARCHAR}, - choicesB = #{record.choicesb,jdbcType=VARCHAR}, - choicesC = #{record.choicesc,jdbcType=VARCHAR}, - choicesD = #{record.choicesd,jdbcType=VARCHAR}, - choicesE = #{record.choicese,jdbcType=VARCHAR}, - user_answer = #{record.userAnswer,jdbcType=VARCHAR}, - answer = #{record.answer,jdbcType=VARCHAR} + set id = #{record.id,jdbcType=INTEGER}, + topic_id = #{record.topicId,jdbcType=VARCHAR}, + flow_id = #{record.flowId,jdbcType=VARCHAR}, + module = #{record.module,jdbcType=VARCHAR}, + topic_content = #{record.topicContent,jdbcType=VARCHAR}, + topic_type = #{record.topicType,jdbcType=VARCHAR}, + choicesA = #{record.choicesa,jdbcType=VARCHAR}, + choicesB = #{record.choicesb,jdbcType=VARCHAR}, + choicesC = #{record.choicesc,jdbcType=VARCHAR}, + choicesD = #{record.choicesd,jdbcType=VARCHAR}, + choicesE = #{record.choicese,jdbcType=VARCHAR}, + user_answer = #{record.userAnswer,jdbcType=VARCHAR}, + answer = #{record.answer,jdbcType=VARCHAR} @@ -317,22 +317,22 @@ answer = #{answer,jdbcType=VARCHAR}, - where id = #{id,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} update topic_record set topic_id = #{topicId,jdbcType=VARCHAR}, - flow_id = #{flowId,jdbcType=VARCHAR}, - module = #{module,jdbcType=VARCHAR}, - topic_content = #{topicContent,jdbcType=VARCHAR}, - topic_type = #{topicType,jdbcType=VARCHAR}, - choicesA = #{choicesa,jdbcType=VARCHAR}, - choicesB = #{choicesb,jdbcType=VARCHAR}, - choicesC = #{choicesc,jdbcType=VARCHAR}, - choicesD = #{choicesd,jdbcType=VARCHAR}, - choicesE = #{choicese,jdbcType=VARCHAR}, - user_answer = #{userAnswer,jdbcType=VARCHAR}, - answer = #{answer,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} + flow_id = #{flowId,jdbcType=VARCHAR}, + module = #{module,jdbcType=VARCHAR}, + topic_content = #{topicContent,jdbcType=VARCHAR}, + topic_type = #{topicType,jdbcType=VARCHAR}, + choicesA = #{choicesa,jdbcType=VARCHAR}, + choicesB = #{choicesb,jdbcType=VARCHAR}, + choicesC = #{choicesc,jdbcType=VARCHAR}, + choicesD = #{choicesd,jdbcType=VARCHAR}, + choicesE = #{choicese,jdbcType=VARCHAR}, + user_answer = #{userAnswer,jdbcType=VARCHAR}, + answer = #{answer,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} \ No newline at end of file