Authored by chenchao

throw out exception if occur

package com.yohoufo.order.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.google.common.base.Throwables;
import com.yoho.error.ServiceError;
import com.yoho.error.exception.ServiceException;
import com.yohobuy.ufo.model.order.bo.CustomsClearanceResult;
... ... @@ -205,7 +204,7 @@ public class BuyerOrderMetaServiceImpl implements IBuyerOrderMetaService {
logger.warn("BuyerOrderMeta4PlatformController updateDeliveryAddress not allow status {} param req is {}",buyerOrder.getStatus(), req);
throw new UfoServiceException(400, "订单状态不允许变更地址");
}
try {
AddressInfo changedAddress = JSONObject.parseObject(addressOfJson, AddressInfo.class);
... ... @@ -229,11 +228,6 @@ public class BuyerOrderMetaServiceImpl implements IBuyerOrderMetaService {
}
return updateDeliveryAddress(buyerUid,orderCode,changedAddress,dbAddressInfo, hiddenAddressInDB, req.isFromPlatform());
}catch (Exception ex){
logger.warn("updateDeliveryAddressByErp occur exception req {} error {}", req, Throwables.getStackTraceAsString(ex));
}
return null;
}
BuyerOrderMeta getBuyerOrderMeta(int uid, long orderCode, String metaKey) {
... ...