瀏覽代碼

sql判断添加

gao.qiang 2 年之前
父節點
當前提交
e310ef5fe7
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      business-service/src/main/resources/mapper/service/MsgAlarmMapper.xml

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

@@ -232,6 +232,9 @@
             <if test="isLock != null and isLock != 0">
                 and a.is_lock=#{isLock}
             </if>
+            <if test="lineDir != null and lineDir != 0">
+                and a.line_dir =#{lineDir}
+            </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')
             </if>