问题批量新增添加scoretype

This commit is contained in:
cjw 2024-06-14 10:00:49 +08:00
parent 580075b0ce
commit 61c4bec84c
1 changed files with 3 additions and 2 deletions

View File

@ -4,10 +4,11 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.dromara.scale.mapper.SysScaleAnswerMapper">
<insert id="batchInsert">
insert into sys_scale_answer(answer_id, question_id, scale_id, answer_option, score, type, sort) values
insert into sys_scale_answer(answer_id, question_id, scale_id, answer_option,
score, score_type, type, sort) values
<foreach item="item" index="index" collection="list" separator=",">
(#{item.answerId}, #{item.questionId}, #{item.scaleId}, #{item.answerOption},
#{item.score}, #{item.type}, #{item.sort})
#{item.score}, #{item.scoreType}, #{item.type}, #{item.sort})
</foreach>
</insert>