Authored by chenchao

use skup in sale status control over-flow price tips

... ... @@ -93,6 +93,12 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I
private static final List<Long> SELLER_TYPES = Arrays.asList(OrderCodeType.SELLER_TYPE.getType());
private static final List<Integer> SHOW_OVER_FLOW_PRICE_STATUS ;
static {
SHOW_OVER_FLOW_PRICE_STATUS = Arrays.asList(SkupStatus.CAN_SELL.getCode());
}
@Override
public OrderDetailInfo getOrderDetail(OrderRequest orderRequest) {
int uid;
... ... @@ -336,10 +342,14 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I
orderDetailInfo.setUserAddress(addressInfo);
//卖家
assembleSoldPrdCompute(orderDetailInfo, order.getUid(), sellerOrderGoods.getId());
String tips = buildOverPriceTips(sellerOrderGoods.getStorageId(), sellerOrderGoods.getGoodsPrice());
OrderDetailInfo.StatusDetail statusDetail = getStatusDetail(order, skupStatus);
if (StringUtils.isNotBlank(tips)){
statusDetail.setDetailDesc(tips);
if(SHOW_OVER_FLOW_PRICE_STATUS.contains(skupStatus.getCode())) {
String tips = buildOverPriceTips(sellerOrderGoods.getStorageId(), sellerOrderGoods.getGoodsPrice());
if (StringUtils.isNotBlank(tips)) {
statusDetail.setDetailDesc(tips);
}
}
orderDetailInfo.setStatusDetail(statusDetail);
GoodsInfo goodsInfo = getGoodsInfo(sellerOrderGoods);
... ...