From d3fa75d27b2169cc0fffe6b8f0079e49dfa8c85f Mon Sep 17 00:00:00 2001 From: ‘liusuyi’ <1951119284@qq.com> Date: 星期二, 19 九月 2023 16:27:54 +0800 Subject: [PATCH] 优化日志 --- ard-work/src/main/resources/mapper/alarm/ArdAlarmRadarPumpMapper.xml | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/ard-work/src/main/resources/mapper/alarm/ArdAlarmRadarPumpMapper.xml b/ard-work/src/main/resources/mapper/alarm/ArdAlarmRadarPumpMapper.xml index 6c9cec1..d69cdc7 100644 --- a/ard-work/src/main/resources/mapper/alarm/ArdAlarmRadarPumpMapper.xml +++ b/ard-work/src/main/resources/mapper/alarm/ArdAlarmRadarPumpMapper.xml @@ -39,7 +39,14 @@ <if test="userId != null and userId != ''"> and user_id = #{userId}</if> <if test="deptId != null "> and dept_id = #{deptId}</if> <if test="guideFlag != null "> and guide_flag = #{guideFlag}</if> + <if test="params.beginTime != null and params.beginTime != ''"><!-- 寮�濮嬫椂闂存绱� --> + AND alarm_time >= to_timestamp(#{params.beginTime},'yyyy-MM-DD HH24:MI:ss') + </if> + <if test="params.endTime != null and params.endTime != ''"><!-- 缁撴潫鏃堕棿妫�绱� --> + AND alarm_time <= to_timestamp(#{params.endTime},'yyyy-MM-DD HH24:MI:ss') + </if> </where> + order by alarm_time desc </select> <select id="selectArdAlarmRadarPumpById" parameterType="String" resultMap="ArdAlarmRadarPumpResult"> -- Gitblit v1.9.3