From 3ccf7c60c328625dbf6c624c2dee1420b74bf64b Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 14 Jan 2026 15:25:15 +0800 Subject: [PATCH] =?UTF-8?q?2026-01-14=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/sys/InterfaceLogDao.xml | 10 +++++----- src/main/resources/mapper/sys/SystemLogDao.xml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/resources/mapper/sys/InterfaceLogDao.xml b/src/main/resources/mapper/sys/InterfaceLogDao.xml index a289eb5..d673155 100644 --- a/src/main/resources/mapper/sys/InterfaceLogDao.xml +++ b/src/main/resources/mapper/sys/InterfaceLogDao.xml @@ -34,8 +34,8 @@ FROM api_log as a left join api_Interface as b on a.interface_name = b.interface_name AND a.site = b.site and a.bu_no = b.bu_no - a.site in (select site from AccessSite where userID = #{userName}) - and a.bu_no in (select bu_no from AccessBu where username = #{userName}) + (a.site in (select site from AccessSite where userID = #{userName}) + and a.bu_no in (select bu_no from AccessBu where username = #{userName})) and type = 'Interface' AND a.interface_name LIKE '%' + #{interfaceName} + '%' @@ -85,10 +85,10 @@ SELECT COUNT(*) FROM api_log as a - left join api_Interface as b on a.interface_name = b.interface_name AND a.site = b.site + left join api_Interface as b on a.interface_name = b.interface_name AND a.site = b.site and a.bu_no = b.bu_no - a.site in (select site from AccessSite where userID = #{userName}) OR a.site = '*' - and a.bu_no in (select bu_no from AccessBu where username = #{userName}) OR a.bu_no = '*' + (a.site in (select site from AccessSite where userID = #{userName}) OR a.site = '*' + and a.bu_no in (select bu_no from AccessBu where username = #{userName}) OR a.bu_no = '*') and a.type ]]> 'Interface' AND a.interface_name LIKE '%' + #{interfaceName} + '%'