From fc8b51f40e71aa09bb49f407c1e9f68ac94ceb58 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期一, 29 七月 2024 18:51:32 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/IGoodsGroupPurchaseService.java | 39 +++++++++++++++++++++++++++++++++++---- 1 files changed, 35 insertions(+), 4 deletions(-) diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/IGoodsGroupPurchaseService.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/IGoodsGroupPurchaseService.java index eebd533..814df1e 100644 --- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/IGoodsGroupPurchaseService.java +++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/IGoodsGroupPurchaseService.java @@ -1,12 +1,16 @@ package com.ruoyi.goods.service; import com.baomidou.mybatisplus.extension.service.IService; +import com.fasterxml.jackson.core.JsonProcessingException; import com.ruoyi.common.core.utils.page.PageDTO; -import com.ruoyi.goods.controller.management.DTO.GoodsGroupPurchaseDTO; -import com.ruoyi.goods.controller.management.DTO.GoodsGroupPurchaseQuery; -import com.ruoyi.goods.controller.management.VO.GoodsGroupPurchaseVO; -import com.ruoyi.goods.domain.GoodsGroupPurchase; +import com.ruoyi.goods.controller.management.dto.GoodsGroupPurchaseDTO; +import com.ruoyi.goods.controller.management.dto.GoodsGroupPurchaseQuery; +import com.ruoyi.goods.controller.management.vo.GoodsGroupPurchaseVO; +import com.ruoyi.system.api.domain.GoodsGroupPurchase; +import com.ruoyi.system.api.domain.dto.HomeGoodsSkuDTO; import com.ruoyi.system.api.domain.dto.ListStatusDTO; +import com.ruoyi.system.api.domain.vo.GoodsGroupPurchaseInfoVO; +import com.ruoyi.system.api.domain.vo.WdGoodsGroupPurchaseVO; /** * <p> @@ -47,4 +51,31 @@ * @param dto 商品上下架状态对象 */ void updStatus(ListStatusDTO dto); + + /** + * 团购商品开始团购 + * + * @param groupPurchaseId 团购商品id + */ + void startGroupPurchase(Long groupPurchaseId) throws JsonProcessingException; + + /** + * 团购商品结束团购 + * + * @param groupPurchaseId 团购商品id + */ + void endGroupPurchase(Long groupPurchaseId) throws JsonProcessingException; + + /** + * 立即结束团购 + * + * @param id 团购商品id + */ + void stopImmediately(Long id); + + GoodsGroupPurchaseInfoVO getGoodsGroupPurchaseInfo(HomeGoodsSkuDTO homeGoodsSkuDTO); + + void QxGoodsGroupPurchase(HomeGoodsSkuDTO homeGoodsSkuDTO); + + PageDTO<WdGoodsGroupPurchaseVO> CtjlGoodsGroupPurchase(HomeGoodsSkuDTO homeGoodsSkuDTO); } -- Gitblit v1.7.1