| | |
| | | import com.ruoyi.system.api.domain.dto.ListStatusDTO; |
| | | import com.ruoyi.system.api.feignClient.OrderClient; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | |
| | | * @author mitao |
| | | * @since 2024-05-16 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class GoodsGroupPurchaseServiceImpl extends ServiceImpl<GoodsGroupPurchaseMapper, GoodsGroupPurchase> implements IGoodsGroupPurchaseService { |
| | |
| | | groupPurchase.setListingStatus(dto.getListingStatus()); |
| | | this.updateById(groupPurchase); |
| | | } |
| | | |
| | | @Override |
| | | public void startGroupPurchase(Long groupPurchaseId) { |
| | | log.info(">>>>>>>>>>>>>>>>>>>>团购商品开始团购<<<<<<<<<<<<<<<<<<<<"); |
| | | GoodsGroupPurchase groupPurchase = this.getById(groupPurchaseId); |
| | | if (StringUtils.isNotNull(groupPurchase)) { |
| | | this.lambdaUpdate().set(GoodsGroupPurchase::getStartStatus, StartStatusEnum.STARTED) |
| | | .eq(GoodsGroupPurchase::getId, groupPurchaseId).update(); |
| | | //TODO 通知小程勋 |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void endGroupPurchase(Long groupPurchaseId) { |
| | | |
| | | } |
| | | } |