Authored by chenchao

fix clone recall address

... ... @@ -105,8 +105,14 @@ public class QuickDeliverPublishProcessor implements PublishProcessor<QuickDeliv
AddressInfo hiddenBackAddress = null;
AddressInfo noHiddenBackAddress = null;
if(serviceOrderProcessor.isGoodsServiceOrder(orderCode)){
hiddenBackAddress = appraiseOrderMetaService.getHidderUserAddress(orderCode);
noHiddenBackAddress = appraiseOrderMetaService.getNoHidderUserAddress(orderCode);
ServiceOrderProcessor.ExistenceNode existenceNode = serviceOrderProcessor.isAppraiseOrder(orderCode);
if (!existenceNode.isExisted()){
logger.warn(" buildPublishCtx fail , req {} StorageDeposit {}", qdosr, sd);
throw new UfoServiceException(501, "寄存商品支付订单丢失");
}
Long parentOrderCode = existenceNode.getAppraiseOrder().getParentOrderCode();
hiddenBackAddress = appraiseOrderMetaService.getHidderUserAddress(parentOrderCode);
noHiddenBackAddress = appraiseOrderMetaService.getNoHidderUserAddress(parentOrderCode);
}else{
hiddenBackAddress = buyerOrderMetaService.getHiddenAddressInfo(uid, orderCode);
noHiddenBackAddress = buyerOrderMetaService.getAddressInfo(uid, orderCode);
... ...
package com.yohoufo.order.service.seller.quickDeliver;
import com.yohobuy.ufo.model.order.constants.SkupType;
import com.yohobuy.ufo.model.order.req.QuickDeliverOrderSubmitReq;
import com.yohoufo.order.BaseWebTest;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
public class QuickDeliverPublishProcessorTest extends BaseWebTest {
@Autowired
private QuickDeliverPublishProcessor quickDeliverPublishProcessor;
@Test
public void test(){
QuickDeliverOrderSubmitReq req = QuickDeliverOrderSubmitReq.builder()
.uid(500031424)
.storageId(500031424)
.price("129")
.num(1)
.skupTypeCode(SkupType.QUICK_DELIVER.getCode())
.build();
quickDeliverPublishProcessor.buildPublishCtx(req);
}
}
... ...