From 2150d84d65b5a2197d0b3f804d0aff0ea82dc93d Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 27 Nov 2025 13:33:41 +0800 Subject: [PATCH] =?UTF-8?q?2025-11-27=20=E6=8E=A5=E5=8F=A3=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=AE=A1=E7=90=86=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/sys/InterfaceLogDao.xml | 105 ++++++++++-------- 1 file changed, 57 insertions(+), 48 deletions(-) diff --git a/src/main/resources/mapper/sys/InterfaceLogDao.xml b/src/main/resources/mapper/sys/InterfaceLogDao.xml index 4a5bae8..d21a3c8 100644 --- a/src/main/resources/mapper/sys/InterfaceLogDao.xml +++ b/src/main/resources/mapper/sys/InterfaceLogDao.xml @@ -6,66 +6,71 @@ SELECT COUNT(*) - FROM api_log + FROM api_log as a + left join api_Interface as b on a.interface_name = b.interface_name AND a.site = b.site + 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 interface_name LIKE '%' + #{interfaceName} + '%' + AND a.interface_name LIKE '%' + #{interfaceName} + '%' - AND request_id = #{requestId} + AND a.request_id = #{requestId} - AND re_document_no LIKE '%' + #{reDocumentNo} + '%' + AND a.re_document_no LIKE '%' + #{reDocumentNo} + '%' - AND re_document_type LIKE '%' + #{reDocumentType} + '%' + AND a.re_document_type LIKE '%' + #{reDocumentType} + '%' - AND status_code = #{statusCode} + AND a.status_code = #{statusCode} - AND source_system = #{sourceSystem} + AND a.source_system = #{sourceSystem} - AND target_system = #{targetSystem} + AND a.target_system = #{targetSystem} - AND need_retry_flag = #{needRetryFlag} + AND a.need_retry_flag = #{needRetryFlag} - AND warehouse_id = #{warehouseId} + AND a.warehouse_id = #{warehouseId} - AND CONVERT(varchar(10), created_date, 23) >= #{startDate} + AND CONVERT(varchar(10), a.created_date, 23) >= #{startDate} - AND CONVERT(varchar(10), created_date, 23) <= #{endDate} + AND CONVERT(varchar(10), a.created_date, 23) <= #{endDate}