|
|
|
@ -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 |
|
|
|
<where> |
|
|
|
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 <![CDATA[<>]]> 'Interface' |
|
|
|
<if test="interfaceName != null and interfaceName.trim() != ''"> |
|
|
|
AND a.interface_name LIKE '%' + #{interfaceName} + '%' |
|
|
|
@ -85,10 +85,10 @@ |
|
|
|
<select id="queryTotal" resultType="int"> |
|
|
|
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 |
|
|
|
<where> |
|
|
|
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 <![CDATA[<>]]> 'Interface' |
|
|
|
<if test="interfaceName != null and interfaceName.trim() != ''"> |
|
|
|
AND a.interface_name LIKE '%' + #{interfaceName} + '%' |
|
|
|
|