提交订单服务伪代码编写

This commit is contained in:
jieyuu 2024-08-21 23:49:44 +08:00
parent e150bde6b3
commit f7360ca182

View File

@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
/** /**
* <p> * <p>
* 服务实现类 * 服务实现类
* </p> * </p>
* *
* @author jieyuu * @author jieyuu
@ -18,6 +18,23 @@ import org.springframework.stereotype.Service;
@Service @Service
public class ProductOrderServiceImpl extends ServiceImpl<ProductOrderMapper, ProductOrderDO> implements ProductOrderService { public class ProductOrderServiceImpl extends ServiceImpl<ProductOrderMapper, ProductOrderDO> implements ProductOrderService {
/**
* * 防重提交
* * 用户微服务-确认收货地址
* * 商品微服务-获取最新购物项和价格
* * 订单验价
* * 优惠券微服务-获取优惠券
* * 验证价格
* * 锁定优惠券
* * 锁定商品库存
* * 创建订单对象
* * 创建子订单对象
* * 发送延迟消息-用于自动关单
* * 创建支付信息-对接三方支付
*
* @param orderService
* @return
*/
@Override @Override
public JsonData confirmOrder(ProductOrderService orderService) { public JsonData confirmOrder(ProductOrderService orderService) {