...
|
...
|
@@ -16,6 +16,41 @@ import java.util.Objects; |
|
|
@Accessors(fluent = true)
|
|
|
public class ExpressStageBuilder {
|
|
|
|
|
|
/**
|
|
|
* 1 卖家发货 -- 平台鉴定 -- 交易成功 ,其中卖家发货点亮
|
|
|
*/
|
|
|
private static final int BEFORE_DEPOT_RECEIVE = 1;
|
|
|
|
|
|
/**
|
|
|
* 2 卖家发货 == 平台鉴定 -- 交易成功 ,其中卖家发货和平台鉴定点亮
|
|
|
*/
|
|
|
private static final int AFTER_DEPOT_RECEIVE = 2;
|
|
|
|
|
|
/**
|
|
|
* 3 卖家发货 == 平台鉴定 == 交易成功 ,全部点亮
|
|
|
*/
|
|
|
private static final int DONE = 3;
|
|
|
|
|
|
/**
|
|
|
* 4 卖家发货 == 平台鉴定 == 交易失败 ,全部点亮
|
|
|
*/
|
|
|
private static final int CANCEL_AFTER_DEPOT_RECEIVE = 4;
|
|
|
|
|
|
/**
|
|
|
* 5 卖家发货 == 交易关闭 ,全部点亮
|
|
|
*/
|
|
|
private static final int CANCEL_BEFORE_DEPOT_RECEIVE = 5;
|
|
|
|
|
|
/**
|
|
|
* 6 平台发货 == 交易成功 ,平台发货点亮
|
|
|
*/
|
|
|
private static final int QUICK_SHIP_DEPOT_SENT = 6;
|
|
|
|
|
|
/**
|
|
|
* 7 平台发货 == 交易成功 ,全部点亮
|
|
|
*/
|
|
|
private static final int QUICK_SHIP_DONE = 7;
|
|
|
|
|
|
final TabType actor;
|
|
|
final int status;
|
|
|
ExpressInfoRespBo expressInfoRespBo;
|
...
|
...
|
@@ -28,19 +63,17 @@ public class ExpressStageBuilder { |
|
|
|
|
|
/**
|
|
|
* @return 物流所处阶段
|
|
|
* <p>
|
|
|
* 1 卖家发货 -- 平台鉴定 -- 交易成功 ,其中卖家发货点亮
|
|
|
* 2 卖家发货 == 平台鉴定 -- 交易成功 ,其中卖家发货和平台鉴定点亮
|
|
|
* 3 卖家发货 == 平台鉴定 == 交易成功 ,全部点亮
|
|
|
* 4 卖家发货 == 平台鉴定 == 交易失败 ,全部点亮
|
|
|
* 5 卖家发货 == 交易关闭 ,全部点亮
|
|
|
* 6 平台发货 == 交易成功 ,平台发货点亮
|
|
|
* 7 平台发货 == 交易成功 ,全部点亮
|
|
|
* </p>
|
|
|
* @see #BEFORE_DEPOT_RECEIVE
|
|
|
* @see #AFTER_DEPOT_RECEIVE
|
|
|
* @see #DONE
|
|
|
* @see #CANCEL_AFTER_DEPOT_RECEIVE
|
|
|
* @see #CANCEL_BEFORE_DEPOT_RECEIVE
|
|
|
* @see #QUICK_SHIP_DEPOT_SENT
|
|
|
* @see #QUICK_SHIP_DONE
|
|
|
*/
|
|
|
public int build() {
|
|
|
// 寄存召回
|
|
|
if (Integer.valueOf(1).equals(scene)) {
|
|
|
// 快速发货
|
|
|
if (ExpressScene.QUICK_SHIP.equals(scene)) {
|
|
|
if (TabType.BUY == actor) {
|
|
|
expressInfoRespBo.setExpressInfoDetailTitle(StringUtils.EMPTY);
|
|
|
expressInfoRespBo.setJudgeExpressInfoDetailTitle(StringUtils.EMPTY);
|
...
|
...
|
@@ -53,23 +86,23 @@ public class ExpressStageBuilder { |
|
|
.filter(e -> e == ExpressInfoConstant.EXPRESS_STATUS_SIGN)
|
|
|
.findFirst()
|
|
|
.isPresent();
|
|
|
return isDone ? 7 : 6;
|
|
|
return isDone ? QUICK_SHIP_DONE : QUICK_SHIP_DEPOT_SENT;
|
|
|
} else {
|
|
|
return 3;
|
|
|
return DONE;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (OrderStatus.PLATFORM_RECEIVE.getCode() == status
|
|
|
|| OrderStatus.PLATFORM_CHECKING.getCode() == status
|
|
|
|| OrderStatus.MINI_FAULT_WAITING.getCode() == status) {
|
|
|
return 2;
|
|
|
return AFTER_DEPOT_RECEIVE;
|
|
|
} else if (OrderStatus.MINI_FAULT_ACCEPT.getCode() == status
|
|
|
|| OrderStatus.JUDGE_PASS.getCode() == status
|
|
|
|| OrderStatus.JUDGE_PASS_WAIT_WAREHOUSE.getCode() == status
|
|
|
|| OrderStatus.WAITING_RECEIVE.getCode() == status) {
|
|
|
return TabType.BUY == actor ? 2 : 3;
|
|
|
return TabType.BUY == actor ? AFTER_DEPOT_RECEIVE : DONE;
|
|
|
} else if (OrderStatus.DONE.getCode() == status) {
|
|
|
return 3;
|
|
|
return DONE;
|
|
|
} else if (OrderStatus.CHECKING_FAKE.getCode() == status
|
|
|
|| OrderStatus.QUALITY_CHECK_FAKE.getCode() == status
|
|
|
|| OrderStatus.MINI_FAULT_REJECT.getCode() == status
|
...
|
...
|
@@ -77,11 +110,11 @@ public class ExpressStageBuilder { |
|
|
|| OrderStatus.PLATFORM_APPRAISE_UNSURE.getCode() == status
|
|
|
|| OrderStatus.PLATFORM_BLOWN_CUSTOMS_CLEARANCE.getCode() == status
|
|
|
|| OrderStatus.BUYER_BLOWN_CUSTOMS_CLEARANCE.getCode() == status) {
|
|
|
return 4;
|
|
|
return CANCEL_AFTER_DEPOT_RECEIVE;
|
|
|
} else if (OrderStatus.BUYER_CANCEL_BEFORE_DEPOT_RECEIVE.getCode() == status) {
|
|
|
return 5;
|
|
|
return CANCEL_BEFORE_DEPOT_RECEIVE;
|
|
|
} else {
|
|
|
return 1;
|
|
|
return BEFORE_DEPOT_RECEIVE;
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|