This commit is contained in:
lsymicc
2026-05-20 09:52:43 +08:00
parent 50d2a924fc
commit a2229cb346
2 changed files with 3 additions and 2 deletions

View File

@@ -29,8 +29,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectRequestLogList" parameterType="RequestLog" resultMap="RequestLogResult">
<include refid="selectRequestLogVo"/>
<where>
<!-- 强制限制:只查最近7天 -->
and request_time >= DATE_SUB(CURDATE(), INTERVAL 14 DAY)
<!-- 只查最近14天 -->
and request_time >= DATEADD(DAY, -14, CAST(GETDATE() AS DATE))
<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>