Просмотр исходного кода

告警列表添加排序方式,按告警状态正序,创建时间倒序排序

liuyaowen 8 месяцев назад
Родитель
Сommit
29c8ab0b3e
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/main/resources/mapper/IotWarnlogMapper.xml

+ 2 - 0
src/main/resources/mapper/IotWarnlogMapper.xml

@@ -47,6 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="wlData != null  and wlData != ''"> and wlData = #{wlData}</if>
             <if test="tid != null  and tid != ''"> and tid = #{tid}</if>
         </where>
+        order by `status` asc, wlCreateddate desc
     </select>
 
     <select id="selectIotWarnlogById" resultMap="IotWarnlogResult">
@@ -177,6 +178,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 and wlCreateddate <![CDATA[ <= ]]>  #{endDate}
             </if>
         </where>
+        order by `status` asc, wlCreateddate desc
     </select>
 
     <select id="getWarnlogCount" parameterType="IotWarnlogReqVo" resultType="java.lang.Integer">