From c26e227abe288476c11b0a8b7875045e71efa14c Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Thu, 30 Apr 2026 17:30:00 +0800
Subject: [PATCH] 新增修改
---
multi-system/src/main/resources/mapper/system/ExExamRecordMapper.xml | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/multi-system/src/main/resources/mapper/system/ExExamRecordMapper.xml b/multi-system/src/main/resources/mapper/system/ExExamRecordMapper.xml
index 4aba8f6..d99142e 100644
--- a/multi-system/src/main/resources/mapper/system/ExExamRecordMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/ExExamRecordMapper.xml
@@ -19,7 +19,6 @@
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="companyName" column="company_name" />
- <association property="student" javaType="com.gkhy.exam.system.domain.ExStudent" resultMap="exStudentResult" />
</resultMap>
<resultMap id="exStudentResult" type="com.gkhy.exam.system.domain.ExStudent">
@@ -30,12 +29,10 @@
</resultMap>
<sql id="selectExamRecordVo">
- select a.id, a.company_id, a.student_id, a.plan_name, a.course_name,a.level,a.period,a.actual_period,a.score,
- a.passed, a.create_by, a.create_time, a.update_by, a.update_time, a.remark,b.name as company_name,
- c.name as student_name,c.id_no as student_idno,c.phone as student_phone
+ select a.id, a.company_id, a.student_id, a.plan_name, a.course_name,a.level,a.plan_date,a.period,a.actual_period,a.score,
+ a.passed, a.create_by, a.create_time, a.update_by, a.update_time, a.remark,b.name as company_name
from ex_exam_record a
left join sys_company b on b.id=a.company_id
- left join ex_student c on c.id=a.student_id
</sql>
<insert id="insertFile">
INSERT INTO `record_file`
@@ -61,6 +58,9 @@
<if test="companyId!=null">
and a.company_id = #{companyId}
</if>
+ <if test="planYear != null and planYear != ''">
+ AND YEAR(a.plan_date) = #{planYear}
+ </if>
</where>
order by a.id desc
</select>
--
Gitblit v1.9.2