瀏覽代碼

代码修改

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