From 2fef55463f5cdd33b8ab3c1aee2027cdbbd45699 Mon Sep 17 00:00:00 2001 From: flower Date: Mon, 10 Dec 2018 05:08:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=80=89=E6=8B=A9=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/exam/ExamQuestionItemMapper.xml | 64 +++++++++++++++- .../mapper/exam/ExamQuestionMapper.xml | 74 +++++++++++++++++-- 2 files changed, 130 insertions(+), 8 deletions(-) diff --git a/ruoyi-exam/src/main/resources/mapper/exam/ExamQuestionItemMapper.xml b/ruoyi-exam/src/main/resources/mapper/exam/ExamQuestionItemMapper.xml index be39626ea..c0ec90260 100644 --- a/ruoyi-exam/src/main/resources/mapper/exam/ExamQuestionItemMapper.xml +++ b/ruoyi-exam/src/main/resources/mapper/exam/ExamQuestionItemMapper.xml @@ -18,12 +18,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - id, content, number, exam_question_id, create_by, create_date, update_by, update_date, remarks, del_flag + select id, content, number, exam_question_id, create_by, create_date, update_by, update_date, remarks, del_flag from exam_question_item + + + + + + insert into exam_question_item + + id, + content, + number, + exam_question_id, + create_by, + create_date, + update_by, + update_date, + remarks, + del_flag, + + + #{id}, + #{content}, + #{number}, + #{examQuestionId}, + #{createBy}, + #{createDate}, + #{updateBy}, + #{updateDate}, + #{remarks}, + #{delFlag}, + + + + + update exam_question_item + + content = #{content}, + number = #{number}, + exam_question_id = #{examQuestionId}, + create_by = #{createBy}, + create_date = #{createDate}, + update_by = #{updateBy}, + update_date = #{updateDate}, + remarks = #{remarks}, + del_flag = #{delFlag}, + + where id = #{id} + + + delete from exam_question_item where id = #{id} + + + + delete from exam_question_item where id in + + #{id} + + \ No newline at end of file diff --git a/ruoyi-exam/src/main/resources/mapper/exam/ExamQuestionMapper.xml b/ruoyi-exam/src/main/resources/mapper/exam/ExamQuestionMapper.xml index a1567b5e4..a84bc6889 100644 --- a/ruoyi-exam/src/main/resources/mapper/exam/ExamQuestionMapper.xml +++ b/ruoyi-exam/src/main/resources/mapper/exam/ExamQuestionMapper.xml @@ -3,7 +3,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -20,12 +20,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - id, title, answer, type, label, category_id, create_by, create_date, update_by, update_date, remarks, del_flag + select id, title, answer, type, label, category_id, create_by, create_date, update_by, update_date, remarks, del_flag from exam_question + - + + + + insert into exam_question + + id, + title, + answer, + type, + label, + category_id, + create_by, + create_date, + update_by, + update_date, + remarks, + del_flag, + + + #{id}, + #{title}, + #{answer}, + #{type}, + #{label}, + #{categoryId}, + #{createBy}, + #{createDate}, + #{updateBy}, + #{updateDate}, + #{remarks}, + #{delFlag}, + + + + + update exam_question + + title = #{title}, + answer = #{answer}, + type = #{type}, + label = #{label}, + category_id = #{categoryId}, + create_by = #{createBy}, + create_date = #{createDate}, + update_by = #{updateBy}, + update_date = #{updateDate}, + remarks = #{remarks}, + del_flag = #{delFlag}, + + where id = #{id} + + + + delete from exam_question where id = #{id} + + + + delete from exam_question where id in + + #{id} + + + \ No newline at end of file