From 98933984fa1353d298a5117fb2a2d044fc51af93 Mon Sep 17 00:00:00 2001
From: rentaiming <806181662@qq.com>
Date: 星期六, 22 六月 2024 13:18:36 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsFlavorTypeServiceImpl.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsFlavorTypeServiceImpl.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsFlavorTypeServiceImpl.java
index faabb23..f191f59 100644
--- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsFlavorTypeServiceImpl.java
+++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsFlavorTypeServiceImpl.java
@@ -8,9 +8,9 @@
 import com.ruoyi.goods.controller.management.dto.GoodsFlavorTypeDTO;
 import com.ruoyi.goods.controller.management.dto.GoodsFlavorTypeQuery;
 import com.ruoyi.goods.controller.management.vo.GoodsFlavorTypeVO;
-import com.ruoyi.system.api.domain.GoodsFlavorType;
 import com.ruoyi.goods.mapper.GoodsFlavorTypeMapper;
 import com.ruoyi.goods.service.IGoodsFlavorTypeService;
+import com.ruoyi.system.api.domain.GoodsFlavorType;
 import java.util.List;
 import org.springframework.stereotype.Service;
 
@@ -48,6 +48,7 @@
         Page<GoodsFlavorType> page = this.lambdaQuery()
                 .like(StringUtils.isNotEmpty(query.getFlavorTypeName()),
                         GoodsFlavorType::getFlavorTypeName, query.getFlavorTypeName())
+                .orderByDesc(GoodsFlavorType::getCreateTime)
                 .page(new Page<>(query.getPageCurr(), query.getPageSize()));
         if (StringUtils.isEmpty(page.getRecords())) {
             return PageDTO.empty(page.getTotal(), page.getPages());

--
Gitblit v1.7.1