From f2032d8331cd8939bb8dd4ef372033a2dcdbc850 Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Thu, 17 Feb 2022 16:10:55 +0800
Subject: [PATCH] +添加法人变更,以及跨区域备案字段更改
---
src/main/java/org/springblade/modules/exam/mapper/ExamSubjectChoicesMapper.xml | 21 ++++++---------------
1 files changed, 6 insertions(+), 15 deletions(-)
diff --git a/src/main/java/org/springblade/modules/exam/mapper/ExamSubjectChoicesMapper.xml b/src/main/java/org/springblade/modules/exam/mapper/ExamSubjectChoicesMapper.xml
index d2842fe..17f6af0 100644
--- a/src/main/java/org/springblade/modules/exam/mapper/ExamSubjectChoicesMapper.xml
+++ b/src/main/java/org/springblade/modules/exam/mapper/ExamSubjectChoicesMapper.xml
@@ -13,9 +13,10 @@
<if test="examSubjectChoices.subjectName!=null and examSubjectChoices.subjectName!=''">
and esc.subject_name like concat('%', #{examSubjectChoices.subjectName},'%')
</if>
- <if test="examSubjectChoices.choicesType!=null and examSubjectChoices.choicesType!=''">
+ <if test="examSubjectChoices.choicesType!=null">
and choices_type = #{examSubjectChoices.choicesType}
</if>
+ order by id desc
</select>
<!--查询试卷绑定的题目-->
@@ -33,8 +34,8 @@
<if test="examSubjectChoices.subjectName!=null and examSubjectChoices.subjectName!=''">
and esc.subject_name like concat('%', #{examSubjectChoices.subjectName},'%')
</if>
- <if test="examSubjectChoices.choicesType!=null and examSubjectChoices.choicesType!=''">
- and esc.choices_type = #{examSubjectChoices.choices_type}
+ <if test="examSubjectChoices.choicesType!=null">
+ and esc.choices_type = #{examSubjectChoices.choicesType}
</if>
</select>
@@ -46,17 +47,7 @@
<id property="subjectName" column="subject_name"/>
<id property="choicesType" column="choices_type"/>
<id property="score" column="score"/>
- <id property="analysis" column="analysis"/>
- <id property="answer" column="answer"/>
<id property="level" column="level"/>
- <id property="creator" column="creator"/>
- <id property="createDate" column="create_date"/>
- <id property="modifier" column="modifier"/>
- <id property="modifyDate" column="modify_date"/>
- <id property="delFlag" column="del_flag"/>
- <id property="applicationCode" column="application_code"/>
- <id property="tenantCode" column="tenant_code"/>
- <id property="tktype" column="tktype"/>
<result column="id" property="id"/>
<collection property="examSubjectOptions" javaType="java.util.List" ofType="org.springblade.modules.exam.entity.ExamSubjectOption" autoMapping="true">
<id property="id" column="eso_id"/>
@@ -64,10 +55,10 @@
</resultMap>
- <!--选择题详情信息-->
+ <!--题目详情信息-->
<select id="selectExamSubjectChoicesInfo" resultMap="ExamSubjectChoicesInfoMap">
SELECT
- esc.*,
+ esc.id,esc.category_id,esc.subject_name,esc.choices_type,esc.score,esc.level,
eso.id eso_id,eso.subject_choices_id,eso.option_name,eso.option_content,eso.creator,
eso.create_date,eso.modifier,eso.modify_date,eso.del_flag,eso.application_code,eso.tenant_code
FROM
--
Gitblit v1.9.3