Showing
1 changed file
with
5 additions
and
4 deletions
@@ -12,6 +12,7 @@ import com.yohobuy.ufo.model.order.resp.ExpressInfoDetail; | @@ -12,6 +12,7 @@ import com.yohobuy.ufo.model.order.resp.ExpressInfoDetail; | ||
12 | import com.yohobuy.ufo.model.order.resp.ExpressInfoRespBo; | 12 | import com.yohobuy.ufo.model.order.resp.ExpressInfoRespBo; |
13 | import com.yohoufo.common.constant.EnumExpressSender; | 13 | import com.yohoufo.common.constant.EnumExpressSender; |
14 | import com.yohoufo.common.constant.ExpressInfoConstant; | 14 | import com.yohoufo.common.constant.ExpressInfoConstant; |
15 | +import com.yohoufo.common.exception.UfoServiceException; | ||
15 | import com.yohoufo.common.utils.DateUtil; | 16 | import com.yohoufo.common.utils.DateUtil; |
16 | import com.yohoufo.dal.order.*; | 17 | import com.yohoufo.dal.order.*; |
17 | import com.yohoufo.dal.order.model.*; | 18 | import com.yohoufo.dal.order.model.*; |
@@ -256,16 +257,16 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { | @@ -256,16 +257,16 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { | ||
256 | if(actor!=null){ | 257 | if(actor!=null){ |
257 | switch (actor){ | 258 | switch (actor){ |
258 | case BUY: | 259 | case BUY: |
259 | - if(uid!=buyerOrder.getUid()){ | 260 | + if(!uid.equals(buyerOrder.getUid())){ |
260 | //验证是买家 | 261 | //验证是买家 |
261 | LOGGER.warn("queryExpressDetailInfo check order not match buyer , uid = {} ,order is {} ", orderCode ,JSON.toJSONString(buyerOrder) ); | 262 | LOGGER.warn("queryExpressDetailInfo check order not match buyer , uid = {} ,order is {} ", orderCode ,JSON.toJSONString(buyerOrder) ); |
262 | - throw new ServiceException(ServiceError.ORDER_NULL); | 263 | + throw new UfoServiceException(400,"订单物流不允许买家用户查询"); |
263 | } | 264 | } |
264 | case SELL: | 265 | case SELL: |
265 | - if(uid!=buyerOrder.getSellerUid()){ | 266 | + if(!uid.equals(buyerOrder.getSellerUid())){ |
266 | //验证是卖家 | 267 | //验证是卖家 |
267 | LOGGER.warn("queryExpressDetailInfo check order not match seller , uid = {} ,order is {} ", orderCode ,JSON.toJSONString(buyerOrder) ); | 268 | LOGGER.warn("queryExpressDetailInfo check order not match seller , uid = {} ,order is {} ", orderCode ,JSON.toJSONString(buyerOrder) ); |
268 | - throw new ServiceException(ServiceError.ORDER_NULL); | 269 | + throw new UfoServiceException(400,"订单物流不允许卖家用户查询"); |
269 | } | 270 | } |
270 | } | 271 | } |
271 | } | 272 | } |
-
Please register or login to post a comment