|
@@ -70,32 +70,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<insert id="insertFsCourseQuestionBankBatch">
|
|
|
- <foreach collection="list" separator=";" item="item">
|
|
|
- insert into fs_course_question_bank
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="item.title != null">title,</if>
|
|
|
- <if test="item.sort != null">sort,</if>
|
|
|
- <if test="item.type != null">type,</if>
|
|
|
- <if test="item.status != null">status,</if>
|
|
|
- <if test="item.question != null">question,</if>
|
|
|
- <if test="item.createTime != null">create_time,</if>
|
|
|
- <if test="item.answer != null">answer,</if>
|
|
|
- <if test="item.createBy != null">create_by,</if>
|
|
|
- <if test="item.questionType != null">question_type,</if>
|
|
|
- <if test="item.questionSubType != null">question_sub_type,</if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="item.title != null">#{item.title},</if>
|
|
|
- <if test="item.sort != null">#{item.sort},</if>
|
|
|
- <if test="item.type != null">#{item.type},</if>
|
|
|
- <if test="item.status != null">#{item.status},</if>
|
|
|
- <if test="item.question != null">#{item.question},</if>
|
|
|
- <if test="item.createTime != null">#{item.createTime},</if>
|
|
|
- <if test="item.answer != null">#{item.answer},</if>
|
|
|
- <if test="item.createBy != null">#{item.createBy},</if>
|
|
|
- <if test="item.questionType != null">#{item.questionType},</if>
|
|
|
- <if test="item.questionSubType != null">#{item.questionSubType},</if>
|
|
|
- </trim>
|
|
|
+ INSERT INTO fs_course_question_bank (
|
|
|
+ title,
|
|
|
+ sort,
|
|
|
+ type,
|
|
|
+ status,
|
|
|
+ question,
|
|
|
+ create_time,
|
|
|
+ answer,
|
|
|
+ create_by,
|
|
|
+ question_type,
|
|
|
+ question_sub_type
|
|
|
+ )
|
|
|
+ VALUES
|
|
|
+ <foreach collection="list" item="item" separator=",">
|
|
|
+ (
|
|
|
+ #{item.title, jdbcType=VARCHAR},
|
|
|
+ #{item.sort, jdbcType=INTEGER},
|
|
|
+ #{item.type, jdbcType=VARCHAR},
|
|
|
+ #{item.status, jdbcType=INTEGER},
|
|
|
+ #{item.question, jdbcType=CLOB},
|
|
|
+ #{item.createTime, jdbcType=TIMESTAMP},
|
|
|
+ #{item.answer, jdbcType=CLOB},
|
|
|
+ #{item.createBy, jdbcType=VARCHAR},
|
|
|
+ #{item.questionType, jdbcType=VARCHAR},
|
|
|
+ #{item.questionSubType, jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|