From 320d6edb14c475850ab6e2343bc51fa0a41a8f3c Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 20 三月 2023 10:40:05 +0800
Subject: [PATCH] 1

---
 src/main/resources/mapper/sys/AuthMapper.xml |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/main/resources/mapper/sys/AuthMapper.xml b/src/main/resources/mapper/sys/AuthMapper.xml
index e84cc20..a323b94 100644
--- a/src/main/resources/mapper/sys/AuthMapper.xml
+++ b/src/main/resources/mapper/sys/AuthMapper.xml
@@ -11,7 +11,7 @@
     </select>
 
     <select id="selectByPage" resultType="com.lf.server.entity.sys.AuthEntity">
-        select * from lf.sys_auth
+        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName from lf.sys_auth a
         <where>
             <if test="name != null">
                 name = #{name}
@@ -33,7 +33,8 @@
     </select>
 
     <select id="selectByPageForMenu" resultType="com.lf.server.entity.sys.AuthEntity">
-        select a.* from lf.sys_auth a where not exists (select b.id from lf.sys_menu_auth b
+        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName
+        from lf.sys_auth a where not exists (select b.id from lf.sys_menu_auth b
         <where>
             b.authid = a.id
             <if test="menuid != null">
@@ -46,11 +47,15 @@
     </select>
 
     <select id="selectAuthAll" resultType="com.lf.server.entity.sys.AuthEntity">
-        select * from lf.sys_auth order by id
+        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName
+        from lf.sys_auth a
+        order by id
     </select>
 
     <select id="selectAuth" resultType="com.lf.server.entity.sys.AuthEntity">
-        select * from lf.sys_auth where id = #{id}
+        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName
+        from lf.sys_auth a
+        where id = #{id}
     </select>
 
     <insert id="insertAuth" parameterType="com.lf.server.entity.sys.AuthEntity">

--
Gitblit v1.9.3