| | |
| | | this.updateById(groupPurchase); |
| | | } |
| | | |
| | | /** |
| | | * 团购商品开始团购 |
| | | * |
| | | * @param groupPurchaseId 团购商品id |
| | | */ |
| | | @Override |
| | | public void startGroupPurchase(Long groupPurchaseId) { |
| | | log.info(">>>>>>>>>>>>>>>>>>>>团购商品开始团购<<<<<<<<<<<<<<<<<<<<"); |
| | | log.info(">>>>>>>>>>>>>>>>>>>>{}团购商品开始团购<<<<<<<<<<<<<<<<<<<<", groupPurchaseId); |
| | | GoodsGroupPurchase groupPurchase = this.getById(groupPurchaseId); |
| | | if (StringUtils.isNotNull(groupPurchase)) { |
| | | this.lambdaUpdate().set(GoodsGroupPurchase::getStartStatus, StartStatusEnum.STARTED) |
| | | .eq(GoodsGroupPurchase::getId, groupPurchaseId).update(); |
| | | //TODO 通知小程勋 |
| | | //TODO 通知小程序 |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 团购商品结束团购 |
| | | * |
| | | * @param groupPurchaseId 团购商品id |
| | | */ |
| | | @Override |
| | | public void endGroupPurchase(Long groupPurchaseId) { |
| | | |
| | | log.info(">>>>>>>>>>>>>>>>>>>>{}团购商品结束团购<<<<<<<<<<<<<<<<<<<<", groupPurchaseId); |
| | | GoodsGroupPurchase groupPurchase = this.getById(groupPurchaseId); |
| | | if (StringUtils.isNotNull(groupPurchase)) { |
| | | this.lambdaUpdate().set(GoodsGroupPurchase::getStartStatus, StartStatusEnum.ENDED) |
| | | .eq(GoodsGroupPurchase::getId, groupPurchaseId).update(); |
| | | //TODO 通知小程序 |
| | | } |
| | | } |
| | | } |