From f0f00e9ba8a755e4317e029d73b69a92ad9f9df1 Mon Sep 17 00:00:00 2001 From: kongzy <kongzy> Date: 星期六, 14 九月 2024 17:02:41 +0800 Subject: [PATCH] update --- exam-system/src/main/resources/mapper/system/ExExamRecordMapper.xml | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/exam-system/src/main/resources/mapper/system/ExExamRecordMapper.xml b/exam-system/src/main/resources/mapper/system/ExExamRecordMapper.xml index 5f2e6c0..f438e61 100644 --- a/exam-system/src/main/resources/mapper/system/ExExamRecordMapper.xml +++ b/exam-system/src/main/resources/mapper/system/ExExamRecordMapper.xml @@ -19,13 +19,23 @@ <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"> + <result property="id" column="student_id" /> + <result property="name" column="student_name" /> + <result property="phone" column="student_phone" /> + <result property="idNo" column="student_idno" /> </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.company_id,a.passed, a.create_by, a.create_time, a.update_by, a.update_time, a.remark,b.name as company_name + a.company_id,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 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> <select id="selectExamRecordList" resultMap="ExamRecordResult"> -- Gitblit v1.9.2