Authored by mali

鉴定中心接口,去掉skup必填

... ... @@ -58,10 +58,10 @@ public class ExpressInfoController {
* @return
*/
@RequestMapping(params = "method=ufo.order.appraiseAddress")
public ApiResponse queryAppraiseAddress(@RequestParam("uid") Integer uid, @RequestParam("skup")Integer skup) {
public ApiResponse queryAppraiseAddress(@RequestParam("uid") Integer uid, @RequestParam(value="skup", required=false)Integer skup) {
LOG.info("method=ufo.order.appraiseAddress in, uid is {}, skup is {}", uid, skup);
if (null == uid || null == skup) {
if (null == uid) {
throw new ServiceException(ServiceError.ORDER_REQUEST_PARM_IS_EMPTY);
}
... ...
... ... @@ -299,6 +299,10 @@ public class ExpressInfoServiceImpl implements IExpressInfoService {
* @return
*/
public AppraiseAddressResp queryAppraiseAddress(Integer uid, Integer skup) {
if (null == skup) {
return appraiseAddressService.queryInitAddress();
}
// 根据用户id查询默认地址的省份
SellerOrderMeta addressMeta = sellerOrderMetaMapper.selectByMetaKey(uid, skup, MetaKey.BACK_2_SELLER_DELIVERY_ADDRESS);
if (null != addressMeta) {
... ...