“djh”
2024-11-11 8458e64aab474c0fc2f49ae4ff22fb11ce5cf6e2
exam-system/src/main/resources/mapper/system/ExQuestionMapper.xml
@@ -45,6 +45,18 @@
        select id, question_type, bank_id, status, company_id,answer,title,privatize,content,version, create_by, create_time, update_by, update_time, remark
        from ex_course
    </sql>
    <insert id="saveBatch">
        INSERT INTO
        `train_exam`.`ex_question`
        ( `question_type`, `bank_id`, `company_id`, `status`, `answer`, `title`, `content`, `privatize`, `create_time`,
         `create_by`, `update_time`, `update_by`, `remark`, `version`)
        VALUES
        <foreach collection="exQuestions" item="question" separator=",">
            (#{question.questionType}, #{question.bankId}, #{question.companyId}, #{question.status}, #{question.answer},
             #{question.title}, #{question.content}, #{question.privatize}, #{question.createTime}, #{question.createBy},
             #{question.updateTime}, #{question.updateBy}, #{question.remark}, #{question.version})
        </foreach>
    </insert>
    <select id="selectCountByBankId" resultType="integer">