Authored by qinchao

fix 物流阶段

... ... @@ -408,13 +408,13 @@ public class ExpressInfoServiceImpl implements IExpressInfoService {
}
//5.设定三个阶段的信息
buildExpressStage(buyerOrder.getStatus(), expressInfoRespBo);
buildExpressStage(actor,buyerOrder.getStatus(), expressInfoRespBo);
LOGGER.info("queryExpressDetailInfo result = {}", JSON.toJSONString(expressInfoRespBo));
return expressInfoRespBo;
}
private void buildExpressStage(int status,ExpressInfoRespBo expressInfoRespBo ){
private void buildExpressStage(TabType actor,int status,ExpressInfoRespBo expressInfoRespBo ){
// 1 卖家发货 -- 平台鉴定 -- 交易成功 ,其中卖家发货点亮
// 2 卖家发货 == 平台鉴定 -- 交易成功 ,其中卖家发货和平台鉴定点亮
// 3 卖家发货 == 平台鉴定 == 交易成功 ,全部点亮
... ... @@ -424,7 +424,15 @@ public class ExpressInfoServiceImpl implements IExpressInfoService {
if(OrderStatus.PLATFORM_RECEIVE.getCode()==status
||OrderStatus.PLATFORM_CHECKING.getCode()==status){
expressInfoRespBo.setStage(2);
}else if(OrderStatus.WAITING_RECEIVE.getCode()==status||OrderStatus.DONE.getCode()==status){
}else if(OrderStatus.WAITING_RECEIVE.getCode()==status){
if(TabType.BUY==actor){
//买家
expressInfoRespBo.setStage(2);
}else{
//卖家
expressInfoRespBo.setStage(3);
}
}else if(OrderStatus.DONE.getCode()==status){
expressInfoRespBo.setStage(3);
}else if(OrderStatus.CHECKING_FAKE.getCode()==status){
expressInfoRespBo.setStage(4);
... ...