Files
pengchen-exam-java/exam-module-exam/exam-module-exam-biz/src/main/resources/mapper/exam/QuestionExamineMapper.xml

23 lines
934 B
XML

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="pc.exam.pp.module.exam.dal.mysql.questionexamine.QuestionExamineMapper">
<insert id="insertOrUpdateList">
INSERT INTO education_question_examine (qu_id,source, create_teacher,type,create_time)
VALUES
<foreach collection="collection" item="item" separator=",">
( #{item.quId}, #{item.source}, #{item.createTeacher}, #{item.type},now())
</foreach>
ON DUPLICATE KEY UPDATE
source = VALUES(source),
create_teacher = VALUES(create_teacher),
type = VALUES(type),
create_time=now()
</insert>
<select id="selectSchoolName" resultType="java.lang.String">
select name from system_tenant where id =#{source}
</select>
</mapper>