...
|
...
|
@@ -15,6 +15,10 @@ import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.Objects;
|
|
|
|
|
|
import static com.yohoufo.order.utils.ServiceExceptions.throwServiceExceptionIf;
|
|
|
|
|
|
/**
|
|
|
* @author kun.wang
|
|
|
* @date 2018/9/25
|
...
|
...
|
@@ -88,13 +92,13 @@ public class ExpressInfoController { |
|
|
@RequestMapping(params = "method=ufo.order.appraiseAddress")
|
|
|
public ApiResponse queryAppraiseAddress(@RequestParam("uid") Integer uid,
|
|
|
@RequestParam(value="skup", required=false)Integer skup,
|
|
|
// from version 6.9.3
|
|
|
@RequestParam(value="orderCode", required=false)Long orderCode) {
|
|
|
LOG.info("method=ufo.order.appraiseAddress in, uid is {}, skup is {} orderCode {}", uid, skup, orderCode);
|
|
|
|
|
|
if (null == uid) {
|
|
|
if (Objects.isNull(uid)) {
|
|
|
throw new ServiceException(ServiceError.ORDER_REQUEST_PARM_IS_EMPTY);
|
|
|
}
|
|
|
|
|
|
throwServiceExceptionIf(Objects.isNull(orderCode),500,"请升级至最新版本");
|
|
|
AppraiseAddressResp appraiseAddressResp = expressInfoService.queryAppraiseAddress(uid, orderCode, skup);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(appraiseAddressResp).build();
|
|
|
}
|
...
|
...
|
|