From 24fc3f18bbeddda342ddf3a3d7f2dd4ef9feab3f Mon Sep 17 00:00:00 2001
From: 张晓波 <bingbo1993@126.com>
Date: 星期一, 11 十二月 2023 18:19:47 +0800
Subject: [PATCH] 未成环的可能有很多

---
 hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml b/hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml
index 7bfe7cb..d8e6366 100644
--- a/hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml
+++ b/hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml
@@ -109,9 +109,12 @@
                 <if test="userId !=null and userId !=''">
                     sdu.user_id=#{userId} AND
                 </if>
+                <if test="userType !=null and userType !=''">
+                    spu.user_type=#{userType} AND
+                </if>
             </trim>
         </where>
-
+        order by spu.create_time desc
     </select>
 
     <select id="queryForPullDownDorm" resultType="com.thhy.staff.modules.biz.platuser.entity.PlatUserPullDown">
@@ -987,7 +990,7 @@
                  left join sys_depart_user sdu on sdu.user_id = spu.user_id
                  left join sys_depart sd on sd.depart_id = sdu.depart_id
         where rwu.region_warranty_id = #{regionWarrantyId}
-        order by user_type
+        order by rwu.user_type
     </select>
 
     <select id="faceArea" resultType="string">

--
Gitblit v1.9.3