From 85a54f184e8b0ac52a475f8e32a7df601da0ec54 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期一, 19 一月 2026 09:53:16 +0800
Subject: [PATCH] 【市一】/smartor/serviceSubtask/queryTaskByCondition 查询优化
---
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
index b61d615..64c69a4 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -182,6 +182,9 @@
u.phonenumber, u.sex, u.status,
u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark from sys_user u
where u.del_flag = '0'
+ <if test="orgid != null">
+ AND u.orgid = #{orgid}
+ </if>
<if test="userId != null">
AND u.user_id = #{userId}
</if>
@@ -306,6 +309,9 @@
<if test="userName != null and userName != ''">
AND u.user_name = #{userName}
</if>
+ <if test="orgid != null and orgid != ''">
+ AND u.orgid = #{orgid}
+ </if>
<if test="deptId != null and deptId != ''">
AND u.dept_id = #{deptId}
</if>
--
Gitblit v1.9.3