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} + '%'