Search in sources :

Example 11 with Order

use of com.stardata.starshop2.ordercontext.command.domain.order.Order in project starshop by beautautumn.

the class OrderManagingService method makeOrderEffectively.

public Order makeOrderEffectively(WxPayResult wxPayResult) {
    Order order = orderRepository.findByOutTradeNo(wxPayResult.getOutTradeNo());
    order.makeEffectively();
    orderRepository.update(order);
    return order;
}
Also used : WxPrepayOrder(com.stardata.starshop2.ordercontext.command.domain.order.WxPrepayOrder) Order(com.stardata.starshop2.ordercontext.command.domain.order.Order)

Aggregations

Order (com.stardata.starshop2.ordercontext.command.domain.order.Order)9 WxPrepayOrder (com.stardata.starshop2.ordercontext.command.domain.order.WxPrepayOrder)9 LongIdentity (com.stardata.starshop2.sharedcontext.domain.LongIdentity)3 BizParameter (com.stardata.starshop2.sharedcontext.domain.BizParameter)2 WxPayResult (com.stardata.starshop2.ordercontext.command.domain.order.WxPayResult)1