From e42cd39c92b627ffa900b131912d9137a98506d7 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期三, 18 十二月 2024 10:41:29 +0800
Subject: [PATCH] 合并代码

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsBargainPriceController.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsBargainPriceController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsBargainPriceController.java
index ff51431..5e9e992 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsBargainPriceController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsBargainPriceController.java
@@ -170,7 +170,7 @@
                 .eq(goodsType != null, Goods::getType, goodsType)
                 .eq(categoryId != null, Goods::getGoodsCategoryId, categoryId));
         List<Integer> goodsIds = goodsList.stream().map(Goods::getId).collect(Collectors.toList());
-        if (goodsId == null){
+        if (CollectionUtils.isEmpty(goodsIds)){
             return R.ok();
         }
 

--
Gitblit v1.7.1