...
|
...
|
@@ -37,8 +37,10 @@ public class SellerBidOrderPaySuccessEventHandler implements IEventHandler<Selle |
|
|
|
|
|
private void changeBuyerOrderStatus(int skup) {
|
|
|
BuyerOrderGoods buyerOrderGoods = getBuyerOrderGoodsBySkup(skup);
|
|
|
logger.info("[{}] buyer order need to change status from {} to {}", buyerOrderGoods.getOrderCode(), OrderStatus.BIDING, OrderStatus.WAITING_PAY);
|
|
|
buyerOrderStateChangers.selectOneToChange(buyerOrderGoods.getUid(), buyerOrderGoods.getOrderCode(), OrderStatus.BIDING, OrderStatus.WAITING_PAY);
|
|
|
OrderStatus sourceStatus = OrderStatus.BIDING;
|
|
|
OrderStatus targetStatus = OrderStatus.WAITING_PAY;
|
|
|
logger.info("[{}] buyer order need to change status from {} to {}", buyerOrderGoods.getOrderCode(), sourceStatus, targetStatus);
|
|
|
buyerOrderStateChangers.selectOneToChange(buyerOrderGoods.getUid(), buyerOrderGoods.getOrderCode(), sourceStatus, targetStatus);
|
|
|
}
|
|
|
|
|
|
private BuyerOrderGoods getBuyerOrderGoodsBySkup(int skup) {
|
...
|
...
|
|