...
|
...
|
@@ -7,20 +7,25 @@ import com.yohobuy.ufo.model.order.bo.OrderInfo; |
|
|
import com.yohobuy.ufo.model.order.common.OrderCodeType;
|
|
|
import com.yohobuy.ufo.model.order.common.OrderStatus;
|
|
|
import com.yohobuy.ufo.model.order.constants.StorageDepositStatusEnum;
|
|
|
import com.yohoufo.dal.order.SellerOrderGoodsMapper;
|
|
|
import com.yohoufo.dal.order.model.DepositOrder;
|
|
|
import com.yohoufo.dal.order.model.EntrySellerRechargeOrder;
|
|
|
import com.yohoufo.dal.order.model.SellerOrderGoods;
|
|
|
import com.yohoufo.dal.order.model.StorageDeposit;
|
|
|
import com.yohoufo.order.model.request.PaymentRequest;
|
|
|
import com.yohoufo.order.model.response.PrepayResponse;
|
|
|
import com.yohoufo.order.service.AbstractOrderPaymentService;
|
|
|
import com.yohoufo.order.service.DepositService;
|
|
|
import com.yohoufo.order.service.deposit.DepositOrderService;
|
|
|
import com.yohoufo.order.service.proxy.InBoxFacade;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.swing.text.html.Option;
|
|
|
import java.util.Objects;
|
|
|
import java.util.Optional;
|
|
|
|
|
|
@Service
|
|
|
public class DepositOrderPaymentService extends AbstractOrderPaymentService {
|
...
|
...
|
@@ -32,6 +37,12 @@ public class DepositOrderPaymentService extends AbstractOrderPaymentService { |
|
|
@Autowired
|
|
|
private DepositService depositService;
|
|
|
|
|
|
@Autowired
|
|
|
protected InBoxFacade inBoxFacade;
|
|
|
|
|
|
@Autowired
|
|
|
private SellerOrderGoodsMapper sellerOrderGoodsMapper;
|
|
|
|
|
|
@Override
|
|
|
public boolean isTimeoutCancelStatus(OrderInfo orderInfo) {
|
|
|
return false;
|
...
|
...
|
@@ -151,6 +162,13 @@ public class DepositOrderPaymentService extends AbstractOrderPaymentService { |
|
|
if (result != 1) {
|
|
|
logger.error("depositService.changeStorageStatus find wrong, depositCode is {}, result is {}", depositOrder.getDepositCode(), result);
|
|
|
return;
|
|
|
} else {
|
|
|
StorageDeposit deposit = depositService.selectStorageDeposit(depositOrder.getUid(), depositOrder.getDepositCode());
|
|
|
|
|
|
SellerOrderGoods psog = Optional.ofNullable(deposit).map(StorageDeposit::getSkup)
|
|
|
.map(sellerOrderGoodsMapper::selectByPrimaryKey).orElse(null);
|
|
|
|
|
|
inBoxFacade.recallDepositnotify(deposit.getOwnerUid(), psog); // 更新待拣货状态成功后,发通知
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|