Authored by LUOXC

refactor

@@ -92,12 +92,9 @@ public class ExpressInfoController { @@ -92,12 +92,9 @@ public class ExpressInfoController {
92 @RequestMapping(params = "method=ufo.order.appraiseAddress") 92 @RequestMapping(params = "method=ufo.order.appraiseAddress")
93 public ApiResponse queryAppraiseAddress(@RequestParam("uid") Integer uid, 93 public ApiResponse queryAppraiseAddress(@RequestParam("uid") Integer uid,
94 @RequestParam(value="skup", required=false)Integer skup, 94 @RequestParam(value="skup", required=false)Integer skup,
95 - // from version 6.9.3  
96 @RequestParam(value="orderCode", required=false)Long orderCode) { 95 @RequestParam(value="orderCode", required=false)Long orderCode) {
97 LOG.info("method=ufo.order.appraiseAddress in, uid is {}, skup is {} orderCode {}", uid, skup, orderCode); 96 LOG.info("method=ufo.order.appraiseAddress in, uid is {}, skup is {} orderCode {}", uid, skup, orderCode);
98 - if (Objects.isNull(uid)) {  
99 - throw new ServiceException(ServiceError.ORDER_REQUEST_PARM_IS_EMPTY);  
100 - } 97 + // orderCode 6.9.3版本新增,6.9.10版本为必填项
101 throwServiceExceptionIf(Objects.isNull(orderCode),500,"请升级至最新版本"); 98 throwServiceExceptionIf(Objects.isNull(orderCode),500,"请升级至最新版本");
102 AppraiseAddressResp appraiseAddressResp = expressInfoService.queryAppraiseAddress(uid, orderCode, skup); 99 AppraiseAddressResp appraiseAddressResp = expressInfoService.queryAppraiseAddress(uid, orderCode, skup);
103 return new ApiResponse.ApiResponseBuilder().code(200).data(appraiseAddressResp).build(); 100 return new ApiResponse.ApiResponseBuilder().code(200).data(appraiseAddressResp).build();