本地最新代码:同步所有修改及新增模块

This commit is contained in:
local
2026-08-11 13:34:15 +08:00
parent 2b86d14f56
commit 916ac6bda3
172 changed files with 13896 additions and 1774 deletions

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
@@ -29,20 +29,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectRequestLogList" parameterType="RequestLog" resultMap="RequestLogResult">
<include refid="selectRequestLogVo"/>
<where>
<if test="requestTime != null and requestTime != ''"> and request_time = #{requestTime}</if>
<if test="sourceSystem != null and sourceSystem != ''"> and source_system = #{sourceSystem}</if>
<if test="targetSystem != null and targetSystem != ''"> and target_system = #{targetSystem}</if>
<if test="endpoint != null and endpoint != ''"> and endpoint = #{endpoint}</if>
<if test="requestUrl != null and requestUrl != ''"> and request_url = #{requestUrl}</if>
<if test="requestMethod != null and requestMethod != ''"> and request_method = #{requestMethod}</if>
<if test="requestHeaders != null and requestHeaders != ''"> and request_headers = #{requestHeaders}</if>
<if test="requestBody != null and requestBody != ''"> and request_body = #{requestBody}</if>
<if test="responseTime != null and responseTime != ''"> and response_time = #{responseTime}</if>
<if test="responseBody != null and responseBody != ''"> and response_body = #{responseBody}</if>
<if test="responseStatus != null and responseStatus != ''"> and response_status = #{responseStatus}</if>
<if test="errorDetails != null and errorDetails != ''"> and error_details = #{errorDetails}</if>
<if test="duration != null and duration != ''"> and duration = #{duration}</if>
<if test="isSuccessful != null and isSuccessful != ''"> and Is_successful = #{isSuccessful}</if>
<if test="requestTime != null and requestTime != ''"> and request_time like concat('%', #{requestTime}, '%')</if>
<if test="sourceSystem != null and sourceSystem != ''"> and source_system like concat('%', #{sourceSystem}, '%')</if>
<if test="targetSystem != null and targetSystem != ''"> and target_system like concat('%', #{targetSystem}, '%')</if>
<if test="endpoint != null and endpoint != ''"> and endpoint like concat('%', #{endpoint}, '%')</if>
<if test="requestUrl != null and requestUrl != ''"> and request_url like concat('%', #{requestUrl}, '%')</if>
<if test="requestMethod != null and requestMethod != ''"> and request_method like concat('%', #{requestMethod}, '%')</if>
<if test="requestHeaders != null and requestHeaders != ''"> and request_headers like concat('%', #{requestHeaders}, '%')</if>
<if test="requestBody != null and requestBody != ''"> and request_body like concat('%', #{requestBody}, '%')</if>
<if test="responseTime != null and responseTime != ''"> and response_time like concat('%', #{responseTime}, '%')</if>
<if test="responseBody != null and responseBody != ''"> and response_body like concat('%', #{responseBody}, '%')</if>
<if test="responseStatus != null and responseStatus != ''"> and response_status like concat('%', #{responseStatus}, '%')</if>
<if test="errorDetails != null and errorDetails != ''"> and error_details like concat('%', #{errorDetails}, '%')</if>
<if test="duration != null and duration != ''"> and duration like concat('%', #{duration}, '%')</if>
<if test="isSuccessful != null and isSuccessful != ''"> and Is_successful like concat('%', #{isSuccessful}, '%')</if>
</where>
</select>
@@ -112,10 +112,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
delete from request_log where request_id = #{requestId}
</delete>
<select id="getMethod" resultType="string">
select endpoint from request_log group by endpoint
</select>
<select id="getSource" resultType="string">
select source_system from request_log group by source_system
</select>
<select id="getTarget" resultType="string">
select target_system from request_log group by target_system
</select>
<delete id="deleteRequestLogByRequestIds" parameterType="String">
delete from request_log where request_id in
<foreach item="requestId" collection="array" open="(" separator="," close=")">
#{requestId}
</foreach>
</delete>
</mapper>
</mapper>