【修改】试题导入由名称改为id
This commit is contained in:
@@ -16,6 +16,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="roles" column="roles" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="ExamKnowledgePoints" id="KnowledgePointsResult">
|
||||
<result property="spId" column="sp_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="ancestors" column="ancestors" />
|
||||
<result property="spName" column="sp_name" />
|
||||
<result property="orderNum" column="order_num" />
|
||||
<result property="status" column="status" />
|
||||
<result property="treeNum" column="tree_num" />
|
||||
</resultMap>
|
||||
<sql id="selectExamSpecialtyVo">
|
||||
select sp_id, parent_id, ancestors, sp_name, order_num, status, creator, create_time, updater, update_time, unite, tree_num, roles,tenant_id from exam_specialty
|
||||
</sql>
|
||||
@@ -111,8 +120,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
AND q3.sp_name = #{subjectName}
|
||||
AND q1.deleted = '0'
|
||||
AND q2.deleted = '0'
|
||||
AND q3.deleted = '0';
|
||||
AND q3.deleted = '0'
|
||||
LIMIT 1;
|
||||
</select>
|
||||
<select id="selectByPointsSub" resultMap="KnowledgePointsResult">
|
||||
SELECT
|
||||
q3.*
|
||||
FROM exam_knowledge_points q1
|
||||
JOIN exam_knowledge_points q2 ON q2.parent_id = q1.sp_id
|
||||
JOIN exam_knowledge_points q3 ON q3.parent_id = q2.sp_id
|
||||
WHERE q1.sp_name = #{specialtyName}
|
||||
AND q2.sp_name = #{chapteridDictText}
|
||||
AND q3.sp_name = #{pointNames}
|
||||
AND q1.deleted = '0'
|
||||
AND q2.deleted = '0'
|
||||
AND q3.deleted = '0'
|
||||
LIMIT 1;
|
||||
</select>
|
||||
|
||||
|
||||
<update id="deleteExamSpecialtyBySpId" parameterType="Long">
|
||||
update exam_specialty
|
||||
|
Reference in New Issue
Block a user