From 75960d6e223f8cab9ceb489f6b89f5f08c6db62a Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期五, 01 八月 2025 17:24:32 +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