Authored by wujiexiang

求购 -- 退款

... ... @@ -182,11 +182,11 @@ public class BuyerBidDepositPaymentService extends AbstractOrderPaymentService {
}
final static List<Integer> canRefundStatusList = Arrays.asList(
OrderStatus.BIDING.getCode(),
OrderStatus.HAS_PAYED.getCode(),
OrderStatus.BUYER_CLOSE_BID.getCode(),
OrderStatus.SYSTEM_CLOSE_BID.getCode(),
OrderStatus.PLATFORM_CLOSE_BID.getCode()
OrderStatus.PLATFORM_CLOSE_BID.getCode(),
OrderStatus.HAS_PAYED.getCode()//尾款支付完成后,将定金退款给用户
);
@Override
... ...
... ... @@ -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) {
... ...