From b882510e16aad7e84d1f50c58831b54ebb5bae22 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期二, 11 三月 2025 17:19:16 +0800
Subject: [PATCH] 代码初始化

---
 server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformWarnEventServiceImpl.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformWarnEventServiceImpl.java b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformWarnEventServiceImpl.java
index 51c4937..dcadef0 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformWarnEventServiceImpl.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformWarnEventServiceImpl.java
@@ -1,9 +1,7 @@
 package com.doumee.service.business.impl;
 
-import com.doumee.core.constants.ResponseStatus;
-import com.doumee.core.exception.BusinessException;
-import com.doumee.core.model.PageData;
-import com.doumee.core.model.PageWrap;
+import com.doumee.service.business.third.model.PageData;
+import com.doumee.service.business.third.model.PageWrap;
 import com.doumee.core.utils.Constants;
 import com.doumee.core.utils.Utils;
 import com.doumee.dao.business.PlatformWarnEventMapper;
@@ -109,6 +107,7 @@
                         .selectAs(Platform::getName,PlatformWarnEvent::getPlatformName)
                         .selectAs(Platform::getHkId,PlatformWarnEvent::getPlatfromHkId)
                         .leftJoin(Platform.class,Platform::getId,PlatformWarnEvent::getPlatformId)
+                        .orderByDesc(PlatformWarnEvent::getCreateDate)
                         .last(" limit 20 ")
         );
         List<PlatformWarnEventListResponse> list = new ArrayList<PlatformWarnEventListResponse>();

--
Gitblit v1.9.3