From ee9688b912bb993b54252a26f8ad9e0e04df21c3 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期五, 21 六月 2024 18:11:21 +0800 Subject: [PATCH] 修改bug --- ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsSeriesServiceImpl.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsSeriesServiceImpl.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsSeriesServiceImpl.java index 0d4a323..6684581 100644 --- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsSeriesServiceImpl.java +++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsSeriesServiceImpl.java @@ -8,9 +8,9 @@ import com.ruoyi.goods.controller.management.dto.GoodsSeriesDTO; import com.ruoyi.goods.controller.management.dto.GoodsSeriesQuery; import com.ruoyi.goods.controller.management.vo.GoodsSeriesVO; -import com.ruoyi.system.api.domain.GoodsSeries; import com.ruoyi.goods.mapper.GoodsSeriesMapper; import com.ruoyi.goods.service.IGoodsSeriesService; +import com.ruoyi.system.api.domain.GoodsSeries; import java.util.List; import org.springframework.stereotype.Service; @@ -50,6 +50,7 @@ Page<GoodsSeries> page = this.lambdaQuery() .like(StringUtils.isNotEmpty(query.getSeriesName()), GoodsSeries::getSeriesName, query.getSeriesName()) + .orderByDesc(GoodsSeries::getCreateTime) .page(new Page<>(query.getPageCurr(), query.getPageSize())); if (StringUtils.isEmpty(page.getRecords())) { return PageDTO.empty(page.getTotal(), page.getPages()); -- Gitblit v1.7.1