Authored by LUOXC

添加状态

... ... @@ -1175,7 +1175,7 @@ public class AppraiseService {
throw new ServiceException(ServiceError.ORDER_NULL);
}
final OrderStatus expectOrderStatus = OrderStatus.PLATFORM_RECEIVE;
final OrderStatus targetOrderStatus = OrderStatus.JUDGE_PASS;
final OrderStatus targetOrderStatus = BuyerOrderUtils.isDeposit(buyerOrder) ? OrderStatus.JUDGE_PASS_WAIT_WAREHOUSE : OrderStatus.JUDGE_PASS;
if (buyerOrder.getStatus() != expectOrderStatus.getCode()) {
LOGGER.warn("in judgeCenterPass, buyer Order orderCode {} status {}, expect Order Status is {} ", expectOrderStatus,
... ...
... ... @@ -3,6 +3,7 @@ package com.yohoufo.order.utils;
import com.yohobuy.ufo.model.order.bo.OrderInfo;
import com.yohobuy.ufo.model.order.common.OrderAttributes;
import com.yohobuy.ufo.model.order.common.OrderStatus;
import com.yohoufo.dal.order.model.BuyerOrder;
public class BuyerOrderUtils {
... ... @@ -49,4 +50,11 @@ public class BuyerOrderUtils {
public static boolean isDeposit(Integer attributes) {
return OrderAttributes.getOrderAttributes(attributes) == OrderAttributes.DEPOSITE;
}
/**
* 是否寄存订单
*/
public static boolean isDeposit(BuyerOrder buyerOrder) {
return isDeposit(buyerOrder.getAttributes());
}
}
... ...