From cd59ededbf05a0ae73b8f4944fbf40a1fb01d28a Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期一, 11 十一月 2024 18:03:43 +0800
Subject: [PATCH] 错题详情

---
 src/main/resources/mapper/ExamPaperMapper.xml |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/main/resources/mapper/ExamPaperMapper.xml b/src/main/resources/mapper/ExamPaperMapper.xml
index 165bcf3..b7c419a 100644
--- a/src/main/resources/mapper/ExamPaperMapper.xml
+++ b/src/main/resources/mapper/ExamPaperMapper.xml
@@ -4,7 +4,6 @@
     <resultMap id="BaseResultMap" type="com.ycl.jxkg.domain.entity.ExamPaper">
         <id column="id"  property="id"/>
         <result column="name"  property="name"/>
-        <result column="subject_id"  property="subjectId"/>
         <result column="paper_type"  property="paperType"/>
         <result column="score"  property="score"/>
         <result column="question_count"  property="questionCount"/>
@@ -19,7 +18,7 @@
     </resultMap>
 
     <sql id="Base_Column_List">
-        id, name, subject_id, paper_type, score, question_count, suggest_time,visibility
+        id, name, paper_type, score, question_count, suggest_time,visibility
         ,deduct_type,deduct_type_score,create_user, create_time,deleted
     </sql>
 
@@ -35,15 +34,12 @@
         tep.*
         FROM t_exam_paper tep
         <where>
-            and tep.deleted=0
+            and tep.deleted=0 and (create_user = #{createUser} or visibility = 'Public')
             <if test="id != null ">
                 and tep.id= #{id}
             </if>
             <if test="name != null and name != ''">
                 and tep.name like concat('%',#{name},'%')
-            </if>
-            <if test="subjectId != null ">
-                and tep.subject_id= #{subjectId}
             </if>
             <if test="paperType != null ">
                 and tep.paper_type= #{paperType}
@@ -68,9 +64,6 @@
         FROM t_exam_paper
         <where>
             and deleted=0
-            <if test="subjectId != null ">
-                and subject_id=#{subjectId}
-            </if>
             <if test="levelId != null ">
                 and grade_level=#{levelId}
             </if>

--
Gitblit v1.8.0