Commit 86c4568f authored by 吴卿华's avatar 吴卿华

多选

parent b291edfb
...@@ -156,7 +156,6 @@ public class TBankSubjectController extends BaseController ...@@ -156,7 +156,6 @@ public class TBankSubjectController extends BaseController
excelEntity.setBankId(bankId); excelEntity.setBankId(bankId);
/**题目*/ /**题目*/
excelEntity.setTopicTitle(row.getCell(0).toString()); excelEntity.setTopicTitle(row.getCell(0).toString());
System.out.println(row.getCell(10).toString());
/**题目类型*/ /**题目类型*/
excelEntity.setTopicType(Integer.valueOf(row.getCell(10).toString())); excelEntity.setTopicType(Integer.valueOf(row.getCell(10).toString()));
/**题目*/ /**题目*/
......
...@@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert id="batchInsertTTrainCourseTopic" parameterType="java.util.List"> <insert id="batchInsertTTrainCourseTopic" parameterType="java.util.List">
insert into t_train_course_topic(course_id,topic_title,topic_option,answer,create_time,topic_type) values insert into t_train_course_topic(course_id,topic_title,topic_option,answer,create_time,topic_type) values
<foreach collection="list" item="topic" index="index" separator="," > <foreach collection="list" item="topic" index="index" separator="," >
(#{topic.courseId},#{topic.topicTitle},#{topic.topicOption},#{topic.answer},#{topic.createTime},#{topicType}) (#{topic.courseId},#{topic.topicTitle},#{topic.topicOption},#{topic.answer},#{topic.createTime},#{topic.topicType})
</foreach> </foreach>
</insert> </insert>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment