Bläddra i källkod

报警列表 通过报警时间倒序排序 如果相同,再通过ID排序

王苗苗 1 dag sedan
förälder
incheckning
dc6144e17e

+ 1 - 1
slibra-system/src/main/resources/mapper/business/TXinyiWarningRecordMapper.xml

@@ -77,7 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="timeBegin != null  and timeBegin != ''"> and DATE_FORMAT(create_time, '%Y-%m-%d') &gt;= #{timeBegin}</if>
             <if test="timeEnd != null  and timeEnd != ''"> and DATE_FORMAT(create_time, '%Y-%m-%d') &lt;= #{timeEnd}</if>
         </where>
-        and del_flag = 0 order by id desc
+        and del_flag = 0 order by create_time desc, id desc
     </select>
 
     <select id="selectTXinyiWarningRecordById" parameterType="Long" resultMap="TXinyiWarningRecordResult">