From 23cd5d3ce1d855d06c4a6a295149c6cf5d6255ae Mon Sep 17 00:00:00 2001 From: rentaiming <806181062@qq.com> Date: 星期六, 27 七月 2024 20:06:29 +0800 Subject: [PATCH] 修改bug --- ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsSkuServiceImpl.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsSkuServiceImpl.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsSkuServiceImpl.java index 5bbb2e4..4c2a060 100644 --- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsSkuServiceImpl.java +++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsSkuServiceImpl.java @@ -394,9 +394,9 @@ .ge(GoodsSku::getYears, parseTime15); } if (homeGoodsSkuDTO.getSort()==1){ - wrapper3.last(" ORDER BY IF(isnull(sort_num),1,0), sort_num ASC"); + wrapper3.last(" ORDER BY IF(isnull(sort_num),1,0), sort_num DESC"); }else{ - wrapper3.last(",IF(isnull(sort_num),1,0), sort_num ASC"); + wrapper3.last(",IF(isnull(sort_num),1,0), sort_num DESC"); } Page<GoodsSku> page1 = this.page(page, wrapper3); PageDTO<HomeGoodsSkuListVO> articleCommentsVOPageDTO = PageDTO.of(page1, HomeGoodsSkuListVO.class); -- Gitblit v1.7.1