Browse Source

处理商城商品首页重复问题

yjwang 2 weeks ago
parent
commit
847cab23c1

+ 1 - 1
fs-service/src/main/java/com/fs/hisStore/mapper/FsStoreProductScrmMapper.java

@@ -170,7 +170,7 @@ public interface FsStoreProductScrmMapper
     List<FsStoreProductListQueryVO> selectFsStoreProductHotQuery(int count);
     @Select("select * from fs_store_product_scrm where is_del=0 and is_show=1 and  is_good=1 and is_display=1 order by sort desc limit #{count}")
     List<FsStoreProductListQueryVO> selectFsStoreProductGoodQuery(int count);
-    @Select("select * from fs_store_product_scrm where is_del=0 and is_show=1 and  is_best=1 and is_display=1 order by sort desc")
+    @Select("select * from fs_store_product_scrm where is_del=0 and is_show=1 and  is_best=1 and is_display=1 order by sort desc,product_id desc")
     List<FsStoreProductListQueryVO> selectFsStoreProductTuiListQuery();
     @Select("select * from fs_store_product_scrm where is_del=0 and is_show=1 and  is_good=1 and is_display=1 order by sort desc")
     List<FsStoreProductListQueryVO> selectFsStoreProductGoodListQuery();