...
|
...
|
@@ -15,6 +15,7 @@ import java.util.stream.Collectors; |
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
import com.yohobuy.ufo.model.order.constants.RegionEnum;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.elasticsearch.common.collect.Lists;
|
...
|
...
|
@@ -1749,7 +1750,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
resp.setStatusStr(Constant.convertOrderStatusStr(buyerOrder.getStatus()));
|
|
|
resp.setCreateTimeStr(DateUtil.int2DateStr(buyerOrder.getCreateTime(), "yyyy-MM-dd HH:mm:ss"));
|
|
|
resp.setAttributes(buyerOrder.getAttributes());
|
|
|
resp.setAttributesStr(OrderConfigConstant.getOrderAttributeStr(buyerOrder.getAttributes()));
|
|
|
|
|
|
|
|
|
//检查买家是否是线下店的用户
|
|
|
resp.setInnerBuyerType("0");
|
...
|
...
|
@@ -1808,6 +1809,8 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
|
|
|
queryProductLimitInfo(resp, sellerGoods.getProductId(), buyerOrder.getSellerUid()); // 独家标识
|
|
|
|
|
|
resp.setAttributesStr(OrderConfigConstant.getOrderAttributeStr(buyerOrder.getAttributes(), sellerGoods.getRegion()));
|
|
|
|
|
|
return resp;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -2556,7 +2559,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
resp.setStatusStr(Constant.convertOrderStatusStr(item.getStatus()));
|
|
|
resp.setChannel(Objects.equals(item.getAttributes(), 2) ? 2 : 1); //1,线上订单; 2,门店订单
|
|
|
resp.setProductNum(1);//目前固定为1
|
|
|
resp.setAttributesStr(OrderConfigConstant.getOrderAttributeStr(item.getAttributes()));
|
|
|
|
|
|
resp.setActivityType(item.getActivityType());
|
|
|
if(null==sellerGoodsMap.get(skup)){
|
|
|
LOGGER.warn("convertToResp not correct data,sellerGoodsMap get sku p {} is empty ,buyer order {}",skup,item);
|
...
|
...
|
@@ -2566,6 +2569,8 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
resp.setProductName(sellerGoodsMap.get(skup).getProductName());
|
|
|
resp.setColorName(sellerGoodsMap.get(skup).getColorName());
|
|
|
resp.setSizeName(sellerGoodsMap.get(skup).getSizeName());
|
|
|
|
|
|
resp.setAttributesStr(OrderConfigConstant.getOrderAttributeStr(item.getAttributes(), sellerGoodsMap.get(skup).getRegion()));
|
|
|
}
|
|
|
|
|
|
resp.setSkup(skup);
|
...
|
...
|
@@ -2687,8 +2692,10 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
resp.setGoodsPrice(String.format("%.2f", buyerGoodsMap.get(item.getOrderCode()).getGoodsPrice().doubleValue()));
|
|
|
resp.setStatusStr(Constant.convertOrderStatusStr(item.getStatus()));
|
|
|
resp.setStatus(item.getStatus());
|
|
|
|
|
|
resp.setRegion(sellerGoodsMap.get(skup).getRegion());
|
|
|
resp.setAttributes(item.getAttributes());
|
|
|
resp.setAttributesStr(OrderConfigConstant.getOrderAttributeStr(item.getAttributes()));
|
|
|
resp.setAttributesStr(OrderConfigConstant.getOrderAttributeStr(item.getAttributes(), sellerGoodsMap.get(skup).getRegion()));
|
|
|
|
|
|
respList.add(resp);
|
|
|
}
|
...
|
...
|
|