From b21f5b5b40b9b45634020380cf03244d46be2df7 Mon Sep 17 00:00:00 2001
From: rentaiming <806181062@qq.com>
Date: 星期五, 21 六月 2024 16:07:52 +0800
Subject: [PATCH] 用户端商品

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

diff --git a/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/service/impl/AuctionSalesroomGoodsServiceImpl.java b/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/service/impl/AuctionSalesroomGoodsServiceImpl.java
index 448aff0..296d067 100644
--- a/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/service/impl/AuctionSalesroomGoodsServiceImpl.java
+++ b/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/service/impl/AuctionSalesroomGoodsServiceImpl.java
@@ -268,8 +268,9 @@
                 auctionSalesroomVO.setNextAuctionSalesroomGoods(nextAuctionSalesroomGoods);
             }
             LambdaQueryWrapper<AuctionSalesroomGoods> wrapper2=Wrappers.lambdaQuery();
-            wrapper2.notIn(AuctionSalesroomGoods::getSortNum,list);
-            wrapper2.eq(AuctionSalesroomGoods::getDelFlag,0);
+            if(list.size()>0){
+                wrapper2.notIn(AuctionSalesroomGoods::getSortNum,list);
+            }
             wrapper2.eq(AuctionSalesroomGoods::getAuctionSalesroomId,ationSalesroomGoodsDTO.getAuctionSalesroomId());
             wrapper2.orderByAsc(AuctionSalesroomGoods::getSortNum);
             wrapper2.orderByAsc(AuctionSalesroomGoods::getStatus);
@@ -431,6 +432,7 @@
         wrapper2.eq(AuctionSalesroomGoods::getGoodsSkuId,auctionSalesroomGoodsDTO.getGoodsSkuId());
         AuctionSalesroomGoods auctionSalesroomGoods=this.getOne(wrapper2);
         auctionSalesroomGoods.setStatus(AuctionGoodsStatusEnum.IN_PROGRESS);
+        auctionSalesroomGoods.setStartTime(LocalDateTime.now());
         this.updateById(auctionSalesroomGoods);
 
        Map<String, Object> map = new ConcurrentHashMap<>();
@@ -438,7 +440,7 @@
         map.put("notification_time", DateUtils.dateTimeNow("yyyy-MM-dd HH:mm:ss"));
         map.put("goodsSkuId", auctionSalesroomGoods.getId());
         map.put("message_type", "start");
-        map.put("type",2);
+        map.put("type",1);
         map.put("AuctionGoodsStatusEnum",auctionSalesroomGoods.getStatus());
         String msg = null;
         try {

--
Gitblit v1.7.1