From 8458e64aab474c0fc2f49ae4ff22fb11ce5cf6e2 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期一, 11 十一月 2024 16:55:28 +0800
Subject: [PATCH] 批次新增学员查询条件,新增题目导入接口

---
 exam-system/src/main/resources/mapper/system/ExStudentStudyMapper.xml |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/exam-system/src/main/resources/mapper/system/ExStudentStudyMapper.xml b/exam-system/src/main/resources/mapper/system/ExStudentStudyMapper.xml
index fe8b74a..e4a0b79 100644
--- a/exam-system/src/main/resources/mapper/system/ExStudentStudyMapper.xml
+++ b/exam-system/src/main/resources/mapper/system/ExStudentStudyMapper.xml
@@ -11,7 +11,6 @@
         <result property="currentDuration"         column="current_duration"          />
         <result property="currentPage"         column="current_page"          />
         <result property="progress"         column="progress"          />
-        <result property="resourceType"         column="resource_type"          />
         <result property="createBy"       column="create_by"       />
         <result property="createTime"     column="create_time"     />
         <result property="updateBy"       column="update_by"       />
@@ -24,7 +23,7 @@
     </resultMap>
 
     <sql id="selectStudentStudyVo">
-        select a.id, a.phase_id, a.course_id, a.chapter_id, a.period_id,a.student_id,a.current_duration,a.current_page,a.progress,a.resource_type,
+        select a.id, a.phase_id, a.course_id, a.chapter_id, a.period_id,a.student_id,a.current_duration,a.current_page,a.progress,
                a.version, a.create_by, a.create_time, a.update_by, a.update_time, a.remark,b.name as course_name,d.name as chapter_mame,c.name as period_name
         from ex_student_study a
         left join ex_course b on b.id=a.course_id
@@ -41,10 +40,10 @@
 
     <select id="selectStudyByPhaseAndStudentId" resultMap="ExStudentStudyResult">
         <include refid="selectStudentStudyVo"/>
-        where a.phase_id=#{phaseId} and a.student_id=#{studentId} and course_id=#{courseId} order by a.create_time desc
+        where a.phase_id=#{phaseId} and a.student_id=#{studentId} and a.course_id=#{courseId} order by a.create_time desc
     </select>
 
     <select id="selectStudyByObject" resultType="com.gkhy.exam.system.domain.ExStudentStudy">
-        select * from ex_student_study where paper_id=#{paperId} and  period_id=#{periodId} and student_id=#{studentId}
+        select * from ex_student_study where phase_id=#{phaseId} and  period_id=#{periodId} and student_id=#{studentId} limit 1
     </select>
 </mapper>

--
Gitblit v1.9.2