diff --git a/src/main/resources/mappers/TopicRecordMapper.xml b/src/main/resources/mappers/TopicRecordMapper.xml index 860467c..66e9ddc 100644 --- a/src/main/resources/mappers/TopicRecordMapper.xml +++ b/src/main/resources/mappers/TopicRecordMapper.xml @@ -2,7 +2,7 @@ - + @@ -92,15 +92,15 @@ order by ${orderByClause} - select from topic_record - where id = #{id,jdbcType=INTEGER} + where id = #{id,jdbcType=VARCHAR} - + delete from topic_record - where id = #{id,jdbcType=INTEGER} + where id = #{id,jdbcType=VARCHAR} delete from topic_record @@ -114,7 +114,7 @@ choicesA, choicesB, choicesC, choicesD, choicesE, user_answer, answer) - values (#{id,jdbcType=INTEGER}, #{topicId,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR}, + 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}, @@ -165,7 +165,7 @@ - #{id,jdbcType=INTEGER}, + #{id,jdbcType=VARCHAR}, #{topicId,jdbcType=VARCHAR}, @@ -215,7 +215,7 @@ update topic_record - id = #{record.id,jdbcType=INTEGER}, + id = #{record.id,jdbcType=VARCHAR}, topic_id = #{record.topicId,jdbcType=VARCHAR}, @@ -260,7 +260,7 @@ update topic_record - set id = #{record.id,jdbcType=INTEGER}, + set id = #{record.id,jdbcType=VARCHAR}, topic_id = #{record.topicId,jdbcType=VARCHAR}, flow_id = #{record.flowId,jdbcType=VARCHAR}, module = #{record.module,jdbcType=VARCHAR}, @@ -317,7 +317,7 @@ answer = #{answer,jdbcType=VARCHAR}, - where id = #{id,jdbcType=INTEGER} + where id = #{id,jdbcType=VARCHAR} update topic_record @@ -333,6 +333,6 @@ choicesE = #{choicese,jdbcType=VARCHAR}, user_answer = #{userAnswer,jdbcType=VARCHAR}, answer = #{answer,jdbcType=VARCHAR} - where id = #{id,jdbcType=INTEGER} + where id = #{id,jdbcType=VARCHAR} \ No newline at end of file