Browse Source

2025-12-09

接口日志和系统日志管理查询条件优化
master
fengyuan_yang 3 months ago
parent
commit
e821509778
  1. 16
      src/main/resources/mapper/sys/InterfaceLogDao.xml
  2. 16
      src/main/resources/mapper/sys/SystemLogDao.xml

16
src/main/resources/mapper/sys/InterfaceLogDao.xml

@ -42,11 +42,11 @@
<if test="requestId != null and requestId.trim() != ''">
AND a.request_id = #{requestId}
</if>
<if test="reDocumentNo != null and reDocumentNo.trim() != ''">
AND a.re_document_no LIKE '%' + #{reDocumentNo} + '%'
<if test="orderNo != null and orderNo.trim() != ''">
AND a.order_no LIKE '%' + #{orderNo} + '%'
</if>
<if test="reDocumentType != null and reDocumentType.trim() != ''">
AND a.re_document_type LIKE '%' + #{reDocumentType} + '%'
<if test="interfaceType != null and interfaceType.trim() != ''">
AND b.interface_type LIKE '%' + #{interfaceType} + '%'
</if>
<if test="statusCode != null and statusCode.trim() != ''">
AND a.status_code = #{statusCode}
@ -92,11 +92,11 @@
<if test="requestId != null and requestId.trim() != ''">
AND a.request_id = #{requestId}
</if>
<if test="reDocumentNo != null and reDocumentNo.trim() != ''">
AND a.re_document_no LIKE '%' + #{reDocumentNo} + '%'
<if test="orderNo != null and orderNo.trim() != ''">
AND a.order_no LIKE '%' + #{orderNo} + '%'
</if>
<if test="reDocumentType != null and reDocumentType.trim() != ''">
AND a.re_document_type LIKE '%' + #{reDocumentType} + '%'
<if test="interfaceType != null and interfaceType.trim() != ''">
AND b.interface_type LIKE '%' + #{interfaceType} + '%'
</if>
<if test="statusCode != null and statusCode.trim() != ''">
AND a.status_code = #{statusCode}

16
src/main/resources/mapper/sys/SystemLogDao.xml

@ -42,11 +42,11 @@
<if test="requestId != null and requestId.trim() != ''">
AND a.request_id = #{requestId}
</if>
<if test="reDocumentNo != null and reDocumentNo.trim() != ''">
AND a.re_document_no LIKE '%' + #{reDocumentNo} + '%'
<if test="orderNo != null and orderNo.trim() != ''">
AND a.order_no LIKE '%' + #{orderNo} + '%'
</if>
<if test="reDocumentType != null and reDocumentType.trim() != ''">
AND a.re_document_type LIKE '%' + #{reDocumentType} + '%'
<if test="interfaceType != null and interfaceType.trim() != ''">
AND b.interface_type LIKE '%' + #{interfaceType} + '%'
</if>
<if test="statusCode != null and statusCode.trim() != ''">
AND a.status_code = #{statusCode}
@ -92,11 +92,11 @@
<if test="requestId != null and requestId.trim() != ''">
AND a.request_id = #{requestId}
</if>
<if test="reDocumentNo != null and reDocumentNo.trim() != ''">
AND a.re_document_no LIKE '%' + #{reDocumentNo} + '%'
<if test="orderNo != null and orderNo.trim() != ''">
AND a.order_no LIKE '%' + #{orderNo} + '%'
</if>
<if test="reDocumentType != null and reDocumentType.trim() != ''">
AND a.re_document_type LIKE '%' + #{reDocumentType} + '%'
<if test="interfaceType != null and interfaceType.trim() != ''">
AND b.interface_type LIKE '%' + #{interfaceType} + '%'
</if>
<if test="statusCode != null and statusCode.trim() != ''">
AND a.status_code = #{statusCode}

Loading…
Cancel
Save