gao.qiang преди 2 години
родител
ревизия
1d71028bf6
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      business-service/src/main/resources/mapper/service/MsgAlarmMapper.xml

+ 2 - 2
business-service/src/main/resources/mapper/service/MsgAlarmMapper.xml

@@ -290,10 +290,10 @@
                 and a.released_type =#{releasedType}
             </if>
             <if test="beginAlarmTime != null and beginAlarmTime != ''">
-                and date_format(a.alarm_time,'%Y-%m-%d %H:%i:%S') &gt;= date_format(#{beginAlarmTime},'%Y-%m-%d %H:%i:%S')
+                and date_format(a.alarm_time,'%Y-%m-%d') &gt;= date_format(#{beginAlarmTime},'%Y-%m-%d')
             </if>
             <if test="endAlarmTime != null and endAlarmTime != ''">
-                AND date_format(a.alarm_time,'%Y-%m-%d %H:%i:%S') &lt;= date_format(#{endAlarmTime},'%Y-%m-%d %H:%i:%S')
+                AND date_format(a.alarm_time,'%Y-%m-%d') &lt;= date_format(#{endAlarmTime},'%Y-%m-%d')
             </if>
         </where>
         order by  a.alarm_time desc