From f9562fc61410d6c66e6973cb63a659557059d114 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期一, 29 七月 2024 20:54:00 +0800 Subject: [PATCH] 修改bug --- ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsGroupPurchaseServiceImpl.java | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsGroupPurchaseServiceImpl.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsGroupPurchaseServiceImpl.java index cdd540b..3a3b300 100644 --- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsGroupPurchaseServiceImpl.java +++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/GoodsGroupPurchaseServiceImpl.java @@ -106,10 +106,7 @@ } LambdaQueryWrapper<GoodsGroupPurchase> queryWrapper = Wrappers.lambdaQuery(); queryWrapper.eq(GoodsGroupPurchase::getGoodsSkuId, dto.getGoodsSkuId()); - queryWrapper.eq(GoodsGroupPurchase::getListingStatus, - ListingStatusEnum.ON_SHELVES.getCode()); - queryWrapper.le(GoodsGroupPurchase::getStartTime, dto.getStartTime()); - queryWrapper.ge(GoodsGroupPurchase::getEndTime, dto.getStartTime()); + queryWrapper.ne(GoodsGroupPurchase::getStartStatus, StartStatusEnum.ENDED); long count = this.count(queryWrapper); if (count > 0) { throw new ServiceException("添加失败,当前商品在该时间段内有其他团购活动"); -- Gitblit v1.7.1