From 61f0357bef6d6aea12a8c6ecad97db57ee4149fe Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期四, 25 九月 2025 08:35:39 +0800
Subject: [PATCH] 修改
---
multi-system/src/main/resources/mapper/system/ExStudentMapper.xml | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/multi-system/src/main/resources/mapper/system/ExStudentMapper.xml b/multi-system/src/main/resources/mapper/system/ExStudentMapper.xml
index 2cb0b2b..6d2af7b 100644
--- a/multi-system/src/main/resources/mapper/system/ExStudentMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/ExStudentMapper.xml
@@ -11,6 +11,8 @@
<result property="status" column="status" />
<result property="sex" column="sex" />
<result property="idNo" column="id_no" />
+ <result property="deptId" column="dept_id" />
+ <result property="deptName" column="dept_name" />
<result property="post" column="post" />
<result property="duty" column="duty" />
<result property="createId" column="create_id" />
@@ -40,12 +42,13 @@
</resultMap>
<sql id="selectStudentVo">
- select s.id, s.name, s.company_id, s.empno, s.phone,s.status,s.sex,s.id_no,s.post,s.duty,
+ select s.id, s.name, s.company_id, s.empno, s.phone,s.status,s.sex,s.id_no,s.post,s.duty,s.dept_id,sd.dept_name,
s.create_id,s.del_flag,s.version, s.create_by, s.create_time, s.update_by, s.update_time, s.remark,
c.id as company_id,c.name as company_name,d.name as create_name
from ex_student s
left join sys_company c on c.id=s.company_id
left join sys_user d on d.id=s.create_id
+ left join sys_dept sd on sd.dept_id = s.dept_id
</sql>
<update id="deleteByStudentId">
@@ -82,7 +85,7 @@
</foreach>
</if>
</where>
- order by s.id desc
+ order by s.id asc
</select>
<select id="selectStudentById" resultMap="ExStudentResult">
--
Gitblit v1.9.2