...
|
...
|
@@ -2,7 +2,9 @@ package com.yohoufo.order.service.impl; |
|
|
|
|
|
import com.yohobuy.ufo.model.order.common.AppraiseOrderStatus;
|
|
|
import com.yohobuy.ufo.model.order.common.OrderAttributes;
|
|
|
import com.yohobuy.ufo.model.order.constants.StorageDepositStatusEnum;
|
|
|
import com.yohoufo.dal.order.model.AppraiseOrder;
|
|
|
import com.yohoufo.dal.order.model.StorageDeposit;
|
|
|
import lombok.Setter;
|
|
|
import lombok.experimental.Accessors;
|
|
|
|
...
|
...
|
@@ -41,12 +43,19 @@ public class AppraiseExpressStageBuilder { |
|
|
private static final int AUTO_CONFIRM_RECEIPT = 13;
|
|
|
|
|
|
|
|
|
final AppraiseOrder appraiseOrder;
|
|
|
AppraiseOrder appraiseOrder;
|
|
|
|
|
|
StorageDeposit storageDeposit = null;
|
|
|
|
|
|
public AppraiseExpressStageBuilder(AppraiseOrder appraiseOrder) {
|
|
|
this.appraiseOrder = appraiseOrder;
|
|
|
}
|
|
|
|
|
|
public AppraiseExpressStageBuilder(AppraiseOrder appraiseOrder, StorageDeposit storageDeposit) {
|
|
|
this.appraiseOrder = appraiseOrder;
|
|
|
this.storageDeposit = storageDeposit;
|
|
|
}
|
|
|
|
|
|
public int build() {
|
|
|
|
|
|
int status = appraiseOrder.getStatus();
|
...
|
...
|
@@ -72,7 +81,12 @@ public class AppraiseExpressStageBuilder { |
|
|
|| status == AppraiseOrderStatus.PLATFORM_APPRAISE_UNSURE.getCode()
|
|
|
// 鉴定通过召回
|
|
|
|| status == AppraiseOrderStatus.JUDGE_PASS_WAIT_WAREHOUSE.getCode()){
|
|
|
return DEPOSIT_PLATFORM_DELIVER;
|
|
|
|
|
|
if (storageDeposit!=null && Objects.nonNull(storageDeposit.getStatus()) && storageDeposit.getStatus()== StorageDepositStatusEnum.HAS_END.getCode()){
|
|
|
return AUTO_CONFIRM_RECEIPT;
|
|
|
}else{
|
|
|
return DEPOSIT_PLATFORM_DELIVER;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
|