From 8b25631cdce4d0d5830c2e8b3fd3fa4eb67c7407 Mon Sep 17 00:00:00 2001 From: liyong <18434998025@163.com> Date: 星期六, 12 七月 2025 11:01:59 +0800 Subject: [PATCH] 采购管理-来票登记 修改产品中录入日期为空 --- src/main/resources/mapper/system/SysUserMapper.xml | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/resources/mapper/system/SysUserMapper.xml b/src/main/resources/mapper/system/SysUserMapper.xml index 8e9ec54..52ec0a3 100644 --- a/src/main/resources/mapper/system/SysUserMapper.xml +++ b/src/main/resources/mapper/system/SysUserMapper.xml @@ -62,12 +62,14 @@ FROM sys_user_dept T1 LEFT JOIN sys_dept T2 ON T1.dept_id = T2.dept_id + <where> + <if test="tenantId != null and tenantId != 0"> + T1.dept_id = #{tenantId} + </if> + </where> GROUP BY T1.user_id ) T2 on T2.user_id = u.user_id where u.del_flag = '0' - <if test="tenantId != null and tenantId != 0"> - and u.tenant_id = #{tenantId} - </if> <if test="userId != null and userId != 0"> AND u.user_id = #{userId} </if> -- Gitblit v1.9.3