hanfucheng 6 ヶ月 前
コミット
64ee84bed9

+ 1 - 0
src/main/resources/mapper/lawenforcement/LawenforcementViewMapper.xml

@@ -256,6 +256,7 @@
             </when>
             </when>
             <otherwise>and a.record_status in ('lawenforcement_type_4','lawenforcement_type_6') and c.record_state = 0 GROUP BY a.id</otherwise>
             <otherwise>and a.record_status in ('lawenforcement_type_4','lawenforcement_type_6') and c.record_state = 0 GROUP BY a.id</otherwise>
         </choose>
         </choose>
+        order by c.start_time desc
         <if test="deviceId != null  and deviceId != ''"> LIMIT 5 </if>
         <if test="deviceId != null  and deviceId != ''"> LIMIT 5 </if>
     </select>
     </select>