From 4d140aad1da6995de1972ab01d9900c6e5d3f3b6 Mon Sep 17 00:00:00 2001
From: rentaiming <806181662@qq.com>
Date: 星期日, 14 七月 2024 15:04:20 +0800
Subject: [PATCH] 用户端拍卖修改

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

diff --git a/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/service/impl/AuctionBrowseRecordServiceImpl.java b/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/service/impl/AuctionBrowseRecordServiceImpl.java
index eaa5a35..fcc0daf 100644
--- a/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/service/impl/AuctionBrowseRecordServiceImpl.java
+++ b/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/service/impl/AuctionBrowseRecordServiceImpl.java
@@ -73,7 +73,6 @@
         Set<Long> goodsSkuIdList = new HashSet<>();
         List<AuctionBrowseRecord> list = this.list(wrapper3);
         for (AuctionBrowseRecord auctionBrowseRecord:list){
-            AuctionGoods auctionGoods = auctionGoodsMapper.selectById(auctionBrowseRecord.getTargetId());
             goodsSkuIdList.add(auctionBrowseRecord.getTargetId());
         }
         Set<Long> goodsSkuIdList1 = null;
@@ -97,6 +96,7 @@
         page.setSize(auctionGoodsListDTO.getPageSize());
         page.setCurrent(auctionGoodsListDTO.getPageCurr());
         AuctionGoodsListPageDTO auctionGoodsListPageDTO=new AuctionGoodsListPageDTO();
+        if (StringUtils.isNotEmpty(auctionGoodsListDTO.getGoodsSkuName())) {
         if (StringUtils.isNotEmpty(goodsSkuIdList2)){
             auctionGoodsListPageDTO.setGoodsSkuIdList(goodsSkuIdList2);
         }else{
@@ -104,6 +104,7 @@
             goodsSkuIdList2.add(0L);
             auctionGoodsListPageDTO.setGoodsSkuIdList(goodsSkuIdList2);
         }
+        }
         List<AuctionGoods> auctionGoodsPgeList = auctionGoodsMapper.getAuctionGoodsPgeList(page, auctionGoodsListPageDTO);
         List<AuctionGoodsListVO> auctionGoodsVOS=new ArrayList<>();
         for (AuctionGoods auctionGoods:auctionGoodsPgeList){

--
Gitblit v1.7.1