|
|
package com.yohoufo.order.controller.erp;
|
|
|
|
|
|
import com.google.common.base.Throwables;
|
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yohobuy.ufo.model.order.req.*;
|
|
|
import com.yohobuy.ufo.model.order.resp.FastDeliveryBatchOnShelfResp;
|
|
|
import com.yohobuy.ufo.model.order.resp.FastDeliveryGetShelfDetailResp;
|
...
|
...
|
@@ -73,10 +74,13 @@ public class ErpFastDeliveryController { |
|
|
if(ex instanceof UfoServiceException){
|
|
|
code = ((UfoServiceException) ex).getCode();
|
|
|
msg = ex.getMessage();
|
|
|
}else if (ex instanceof ServiceException) {
|
|
|
code = ((ServiceException)ex).getCode();
|
|
|
msg = ex.getMessage();
|
|
|
}else{
|
|
|
msg = "系统错误";
|
|
|
}
|
|
|
logger.warn("batchOnShelf fail, req {}, error {}", req, Throwables.getStackTraceAsString(ex));
|
|
|
logger.warn("batchOnShelf fail, req {}, error {}", req, ex);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(code).message(msg).build();
|
|
|
}
|
|
|
}
|
...
|
...
|
|