Authored by mali

状态枚举值修改

... ... @@ -5,7 +5,9 @@ import com.google.common.collect.Maps;
import com.yohobuy.ufo.model.ProductInfo;
import com.yohobuy.ufo.model.order.bo.DepositProductBo;
import com.yohobuy.ufo.model.order.common.AppraiseOrderStatus;
import com.yohobuy.ufo.model.order.common.OrderAttributes;
import com.yohobuy.ufo.model.order.resp.DepositOrderComputeResp;
import com.yohobuy.ufo.model.order.resp.OrderDetailInfo;
import com.yohobuy.ufo.model.response.StorageDataResp;
import com.yohoufo.common.caller.UfoServiceCaller;
import com.yohoufo.common.helper.ImageUrlAssist;
... ... @@ -198,23 +200,23 @@ public class DepositHelpService {
return Maps.newHashMap();
}
String statusStrByCode = AppraiseOrderStatus.getStatusStrByCode(appraiseOrders.getStatus());
AppraiseOrderStatus aos = AppraiseOrderStatus.getByCode(appraiseOrders.getStatus());
Map<Long,List<String>> result = Maps.newHashMap();
result.put(appraiseOrder, Lists.newArrayList(statusStrByCode, getAppaiseOrderStatusDesc(appraiseOrders.getStatus())));
result.put(appraiseOrder, Lists.newArrayList(aos.statusStr(OrderAttributes.DEPOSITE), getAppaiseOrderStatusDesc(aos)));
return result;
}
public String getAppaiseOrderStatusDesc(Integer status) {
switch (status) {
case 23:
public String getAppaiseOrderStatusDesc(AppraiseOrderStatus appraiseOrderStatus) {
switch (appraiseOrderStatus) {
case PLATFORM_APPRAISE_UNSURE:
return "您的商品无法鉴定,保证金已退还,平台将在1-3个工作日内寄回,请留意物流动态";
case 13:
case CHECKING_FAKE:
return "您的商品鉴定未通过,保证金已扣除,平台将在1-3个工作日内到付寄回,请留意物流动态";
case 20:
case QUALITY_CHECK_FAKE:
return "商品质检未通过,保证金已赔付给买家,平台将在1-3个工作日内到付寄回,请留意物流动态";
default:
return "";
... ...