소스 검색

修复缓存

tianyunperfect 3 년 전
부모
커밋
9c3a9cee06
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      book-server/src/main/java/com/book/server/service/impl/GoodServiceImpl.java

+ 1 - 1
book-server/src/main/java/com/book/server/service/impl/GoodServiceImpl.java

@@ -21,7 +21,7 @@ public class GoodServiceImpl implements GoodsService {
         GoodsExample example = GoodsExample.newAndCreateCriteria()
                 .andShowTypeEqualTo("0")
                 .example();
-        example.orderBy(Goods.Column.weigh.desc());
+        example.orderBy(Goods.Column.weigh.asc());
         return goodsMapper.selectByExample(example);
     }
 }