优化
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user