Authored by chenchao

支持薅羊毛取消退卖家券

... ... @@ -280,7 +280,8 @@ public class ActionStatusHold {
OrderStatus.MINI_FAULT_REJECT.getCode(),
OrderStatus.MINI_FAULT_OUT_TIME_REJECT.getCode(),
OrderStatus.PLATFORM_APPRAISE_UNSURE.getCode(),
OrderStatus.PLATFORM_DETECTION_NOT_PASS.getCode()
OrderStatus.PLATFORM_DETECTION_NOT_PASS.getCode(),
OrderStatus.PLATFORM_CANCEL_OF_BUYER_PULL_WOOL.getCode()
);
}
... ...
... ... @@ -6,7 +6,6 @@ import com.yohoufo.order.event.BuyerRefundCouponEvent;
import com.yohoufo.order.service.impl.BuyerOrderCancelService;
import com.yohoufo.order.utils.LoggerUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
... ...
... ... @@ -442,6 +442,7 @@ public class BuyerOrderCancelService {
int rows = buyerOrderMapper.updateStatusWithStatusList(orderCode, targetStatus.getCode(), statusList, DateUtil.getCurrentTimeSecond());
logger.info("in buyer order cancelByCS because pull wool, req {} updateStatusWithStatusList {}", request, rows);
if (rows > 0) {
asyncRefundSellerCoupon(pbo.getOrderCode(),targetStatus, preparedData.getSellerOrderGoods());
asyncProcessPenalty(preparedData, targetStatus);
//clean cache
cacheCleaner.cleanSellerAndBuyerOrderDetailAndList(pbo.getSellerUid(), pbo.getUid(), orderCode);
... ...