...
|
...
|
@@ -21,6 +21,8 @@ import org.springframework.stereotype.Service; |
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yoho.core.common.utils.DateUtil;
|
|
|
import com.yoho.core.rest.client.ServiceCaller;
|
|
|
import com.yoho.core.rest.governance.ServiceStragetyFinder;
|
|
|
import com.yoho.core.rest.governance.model.ServiceGovernStrategy;
|
|
|
import com.yoho.order.dal.AppraiseAddressMapper;
|
|
|
import com.yoho.order.dal.AreaMapper;
|
|
|
import com.yoho.order.dal.BuyerOrderGoodsMapper;
|
...
|
...
|
@@ -109,6 +111,9 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
@Autowired
|
|
|
private ServiceCaller serviceCaller;
|
|
|
|
|
|
@Autowired
|
|
|
private ServiceStragetyFinder serviceStragetyFinder;
|
|
|
|
|
|
private static final String BUYER_ORDER_META_KEY_DELIVERY_ADDRESS = "delivery_address";
|
|
|
|
|
|
private static final String SELLER_ORDER_META_KEY_BACK_DELIVERY_ADDRESS = "back_delivery_address";
|
...
|
...
|
@@ -273,6 +278,9 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
bo.setWayBillCode(req.getWaybillCode());
|
|
|
bo.setDepotNum(req.getDepotNo());
|
|
|
LOGGER.info("callAppraise orderCode is {}, startTime is {}", orderCode, DateUtil.getCurrentTimeSecond());
|
|
|
|
|
|
ServiceGovernStrategy serGovernStrategy = serviceStragetyFinder.findSerGovernStrategy(args);
|
|
|
LOGGER.info("orderCode is {}, serGovernStrategy is {}", orderCode, null == serGovernStrategy ? "null" : serGovernStrategy.toString());
|
|
|
JSONObject jsonObject = serviceCaller.asyncCall(args, bo, JSONObject.class).get(5, TimeUnit.SECONDS);
|
|
|
LOGGER.info("callAppraise orderCode is {}, endTime is {}", orderCode, DateUtil.getCurrentTimeSecond());
|
|
|
LOGGER.info("call ufo-gateway orderCode is {}, interface is {},result is {}", orderCode, args, jsonObject.toJSONString());
|
...
|
...
|
|