|
|
package com.yohoufo.order.service.impl;
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.yohobuy.ufo.model.order.bo.ButtonShowBo;
|
|
|
import com.yohobuy.ufo.model.order.bo.GoodsInfo;
|
|
|
import com.yohobuy.ufo.model.order.bo.OrderInfo;
|
|
|
import com.yohobuy.ufo.model.order.common.ButtonShow;
|
|
|
import com.yohobuy.ufo.model.order.common.OrderStatus;
|
|
|
import com.yohobuy.ufo.model.order.common.TabType;
|
|
|
import com.yohobuy.ufo.model.order.resp.OrderListInfo;
|
|
|
import com.yohobuy.ufo.model.order.resp.PageResp;
|
|
|
import com.yohoufo.common.helper.ImageUrlAssist;
|
|
|
import com.yohoufo.common.utils.DateUtil;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrder;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrderGoods;
|
|
|
import com.yohoufo.dal.order.model.QiniuLiveRecord;
|
|
|
import com.yohoufo.dal.order.model.SellerOrderGoods;
|
|
|
import com.yohoufo.order.constants.ViewType;
|
|
|
import com.yohoufo.order.model.request.OrderListRequest;
|
|
|
import com.yohoufo.order.service.IOrderListService;
|
|
|
import com.yohoufo.order.utils.BuyerOrderUtils;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.function.Function;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* Created by chenchao on 2018/9/19.
|
|
|
*/
|
|
|
public abstract class AbsOrderListService extends AbsOrderViewService implements IOrderListService{
|
|
|
|
|
|
private final Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
|
|
|
abstract List<Integer> initOrderListRequest(OrderListRequest request);
|
|
|
|
|
|
abstract int getTotal(int uid, List<Integer> statusQuery);
|
|
|
|
|
|
abstract List<BuyerOrder> getOrderList(int uid, List<Integer> statusQuery, int offset, int limit);
|
|
|
|
|
|
abstract List<BuyerOrderGoods> getOrderGoodsList(int uid, List<Long> orderCodeList);
|
|
|
|
|
|
abstract List<SellerOrderGoods> getBaseOrderGoodsList(List<Integer> skups);
|
|
|
|
|
|
/**
|
|
|
* 获取鉴定视频
|
|
|
* @param buyerOrderList
|
|
|
* @return
|
|
|
*/
|
|
|
abstract Map<Long,String> getAppraiseVideo(List<BuyerOrder> buyerOrderList);
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 订单列表
|
|
|
* @param request
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
public PageResp<OrderListInfo> getOrderList(OrderListRequest request){
|
|
|
|
|
|
// check and init请求参数
|
|
|
List<Integer> statusQuery = initOrderListRequest(request);
|
|
|
TabType actor = request.getActor();
|
|
|
int total = getTotal(request.getUid(), statusQuery);
|
|
|
int limit = request.getLimit();
|
|
|
PageResp.PageRespBuilder respBuilder = PageResp.builder()
|
|
|
.page(request.getPage())
|
|
|
.pageSize(limit)
|
|
|
.total(total)
|
|
|
.pagetotal((total % limit == 0) ? (total / limit) : (total / limit + 1));
|
|
|
if (total == 0){
|
|
|
return respBuilder.build();
|
|
|
}
|
|
|
|
|
|
int offset = (request.getPage() - 1) * limit;
|
|
|
|
|
|
List<BuyerOrder> buyerOrderList = getOrderList(request.getUid(), statusQuery, offset, limit);
|
|
|
|
|
|
List<Long> orderCodeList = buyerOrderList.stream().map(BuyerOrder::getOrderCode).collect(Collectors.toList());
|
|
|
//TODO 可以提前计算 total offset limit三者之间的关系,减少一次网络I
|
|
|
if (CollectionUtils.isEmpty(orderCodeList)){
|
|
|
return respBuilder.build();
|
|
|
}
|
|
|
// buyer_order_goods ===> skup+商品成交价 1:1
|
|
|
List<BuyerOrderGoods> buyerOrderGoodsList = getOrderGoodsList(request.getUid(), orderCodeList);
|
|
|
Map<Long, BuyerOrderGoods> buyerOrderGoodsMap = buyerOrderGoodsList.stream()
|
|
|
.collect(Collectors.toMap(BuyerOrderGoods::getOrderCode, Function.identity(), (key1, key2) -> key2));
|
|
|
|
|
|
List<Integer> skups = buyerOrderGoodsList.stream().map(BuyerOrderGoods::getSkup).collect(Collectors.toList());
|
|
|
// seller_order_goods ===> 商品信息
|
|
|
List<SellerOrderGoods> sellerOrderGoodsList = getBaseOrderGoodsList(skups);
|
|
|
Map<Integer, SellerOrderGoods> sellerOrderGoodsMap = sellerOrderGoodsList.stream().collect(Collectors.toMap(SellerOrderGoods::getId, Function.identity()));
|
|
|
|
|
|
Map<Long,String> appraiseVideo = getAppraiseVideo(buyerOrderList);
|
|
|
|
|
|
List<OrderListInfo> data = Lists.newArrayList();
|
|
|
|
|
|
buyerOrderList.stream().forEach(buyerOrder -> {
|
|
|
OrderListInfo orderListInfo = convertOrderInfo(buyerOrderGoodsMap, sellerOrderGoodsMap, buyerOrder, actor, appraiseVideo);
|
|
|
if (orderListInfo == null) return;
|
|
|
data.add(orderListInfo);
|
|
|
});
|
|
|
|
|
|
PageResp orderListInfoRsp = respBuilder.data(data).build();
|
|
|
|
|
|
return orderListInfoRsp;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 获取返回结果
|
|
|
* @param buyerOrderGoodsMap
|
|
|
* @param sellerOrderGoodsMap
|
|
|
* @param buyerOrder
|
|
|
* @return
|
|
|
*/
|
|
|
OrderListInfo convertOrderInfo(Map<Long, BuyerOrderGoods> buyerOrderGoodsMap,
|
|
|
Map<Integer, SellerOrderGoods> sellerOrderGoodsMap,
|
|
|
BuyerOrder buyerOrder,
|
|
|
TabType tabType,
|
|
|
Map<Long,String> appraiseVideo) {
|
|
|
|
|
|
/**
|
|
|
* 1.查询 buyer_order
|
|
|
* 2.查询 buyer_order_goods ==> skup
|
|
|
* 3.查询 seller_order_goods
|
|
|
*/
|
|
|
OrderListInfo orderListInfo = new OrderListInfo();
|
|
|
Integer buyerUid;
|
|
|
Long orderCode;
|
|
|
|
|
|
orderListInfo.setUid(buyerUid=buyerOrder.getUid());
|
|
|
orderListInfo.setBuyerUid(buyerUid);
|
|
|
orderListInfo.setSellerUid(buyerOrder.getSellerUid());
|
|
|
orderListInfo.setOrderCode(orderCode=buyerOrder.getOrderCode());
|
|
|
orderListInfo.setRealPrice(buyerOrder.getAmount() == null ? "" : buyerOrder.getAmount().toPlainString());
|
|
|
|
|
|
boolean isOffline = BuyerOrderUtils.isOffline(buyerOrder.getAttributes());
|
|
|
orderListInfo.setIsOffline(isOffline ? "Y" : "N");
|
|
|
// 订单中状态显示
|
|
|
orderListInfo.setStatus(buyerOrder.getStatus() == null ? -1 : buyerOrder.getStatus());
|
|
|
OrderStatus orderStatus = OrderStatus.getOrderStatus(orderListInfo.getStatus());
|
|
|
|
|
|
if (orderStatus == null){
|
|
|
logger.warn("getOrderList orderStatus not exist, uid is {}, orderCode is {}, status is {}",
|
|
|
buyerUid,orderCode, buyerOrder.getStatus());
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
orderListInfo.setStatuStr(orderStatus.getStatusStr(tabType));
|
|
|
|
|
|
// 当订单状态是待付款, 显示leftTime
|
|
|
Integer leftTime = getLeftTime(tabType, buyerUid, orderCode, buyerOrder.getStatus(), buyerOrder.getCreateTime());
|
|
|
orderListInfo.setLeftTime(leftTime);
|
|
|
|
|
|
// 按钮显示
|
|
|
List<ButtonShowBo> buttonShowBos = orderStatus.getListButtons(tabType);
|
|
|
|
|
|
orderListInfo.setButtons(formatButtons(buyerOrder, buttonShowBos == null ? new ArrayList<>() : new ArrayList<>(buttonShowBos), ViewType.LIST));
|
|
|
|
|
|
// 当剩余时间小于0
|
|
|
if (!CollectionUtils.isEmpty(orderListInfo.getButtons())){
|
|
|
if (orderListInfo.getLeftTime() != null && orderListInfo.getLeftTime() <= 0){
|
|
|
orderListInfo.getButtons().removeIf(x-> x!=null && ButtonShow.NOW_BUY.getCode().equals(x.getCode()));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
BuyerOrderGoods buyerOrderGoods = buyerOrderGoodsMap.get(buyerOrder.getOrderCode());
|
|
|
if (buyerOrderGoods == null){
|
|
|
logger.warn("getOrderList buyer goods not exist, uid is {}, orderCode is {}",
|
|
|
buyerOrder.getUid(), orderListInfo.getOrderCode());
|
|
|
return null;
|
|
|
}
|
|
|
orderListInfo.setSkup(buyerOrderGoods.getSkup());
|
|
|
|
|
|
SellerOrderGoods sellerOrderGoods = sellerOrderGoodsMap.get(buyerOrderGoods.getSkup());
|
|
|
if (sellerOrderGoods == null){
|
|
|
logger.warn("getOrderList seller goods not exist, uid is {}, orderCode is {}",
|
|
|
buyerOrder.getUid(), orderListInfo.getOrderCode());
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
GoodsInfo goodsInfo = new GoodsInfo();
|
|
|
goodsInfo.setColorName(sellerOrderGoods.getColorName());
|
|
|
goodsInfo.setProductName((isOffline ? "【门店订单】" : "") + sellerOrderGoods.getProductName());
|
|
|
goodsInfo.setGoodImg(ImageUrlAssist.getAllProductPicUrl(sellerOrderGoods.getImageUrl(), "goodsimg", "center", "d2hpdGU="));
|
|
|
goodsInfo.setSizeName(sellerOrderGoods.getSizeName());
|
|
|
goodsInfo.setGoodPrice(buyerOrderGoods.getGoodsPrice() == null ? "" :buyerOrderGoods.getGoodsPrice().toPlainString());
|
|
|
goodsInfo.setStorageId(sellerOrderGoods.getStorageId());
|
|
|
goodsInfo.setProductId(sellerOrderGoods.getProductId());
|
|
|
goodsInfo.setSkup(buyerOrderGoods.getSkup());
|
|
|
orderListInfo.setGoodsInfo(goodsInfo);
|
|
|
orderListInfo.setSecendLevelCreateTime(buyerOrder.getCreateTime());
|
|
|
orderListInfo.setCreateTime(DateUtil.formatDate(buyerOrder.getCreateTime(), DateUtil.yyyy_MM_dd_HH_mm_SS));
|
|
|
setAddressInfo(orderListInfo);
|
|
|
orderListInfo.setAppraiseVideoUrl(appraiseVideo.get(buyerOrder.getOrderCode()));
|
|
|
//
|
|
|
orderListInfo.setPayTimeLimit(OrderInfo.PAY_TIME_SECOND);
|
|
|
return orderListInfo;
|
|
|
}
|
|
|
|
|
|
abstract void setAddressInfo(OrderListInfo orderListInfo);
|
|
|
|
|
|
protected abstract void resetDynamicProporties(List<OrderListInfo> list,int type);
|
|
|
} |
|
|
package com.yohoufo.order.service.impl;
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.yohobuy.ufo.model.order.bo.ButtonShowBo;
|
|
|
import com.yohobuy.ufo.model.order.bo.GoodsInfo;
|
|
|
import com.yohobuy.ufo.model.order.bo.TimeoutBo;
|
|
|
import com.yohobuy.ufo.model.order.common.ButtonShow;
|
|
|
import com.yohobuy.ufo.model.order.common.OrderStatus;
|
|
|
import com.yohobuy.ufo.model.order.common.TabType;
|
|
|
import com.yohobuy.ufo.model.order.resp.OrderListInfo;
|
|
|
import com.yohobuy.ufo.model.order.resp.PageResp;
|
|
|
import com.yohoufo.common.helper.ImageUrlAssist;
|
|
|
import com.yohoufo.common.utils.DateUtil;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrder;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrderGoods;
|
|
|
import com.yohoufo.dal.order.model.SellerOrderGoods;
|
|
|
import com.yohoufo.order.constants.ViewType;
|
|
|
import com.yohoufo.order.model.request.OrderListRequest;
|
|
|
import com.yohoufo.order.service.IOrderListService;
|
|
|
import com.yohoufo.order.utils.BuyerOrderUtils;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.function.Function;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* Created by chenchao on 2018/9/19.
|
|
|
*/
|
|
|
public abstract class AbsOrderListService extends AbsOrderViewService implements IOrderListService{
|
|
|
|
|
|
private final Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
|
|
|
abstract List<Integer> initOrderListRequest(OrderListRequest request);
|
|
|
|
|
|
abstract int getTotal(int uid, List<Integer> statusQuery);
|
|
|
|
|
|
abstract List<BuyerOrder> getOrderList(int uid, List<Integer> statusQuery, int offset, int limit);
|
|
|
|
|
|
abstract List<BuyerOrderGoods> getOrderGoodsList(int uid, List<Long> orderCodeList);
|
|
|
|
|
|
abstract List<SellerOrderGoods> getBaseOrderGoodsList(List<Integer> skups);
|
|
|
|
|
|
/**
|
|
|
* 获取鉴定视频
|
|
|
* @param buyerOrderList
|
|
|
* @return
|
|
|
*/
|
|
|
abstract Map<Long,String> getAppraiseVideo(List<BuyerOrder> buyerOrderList);
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 订单列表
|
|
|
* @param request
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
public PageResp<OrderListInfo> getOrderList(OrderListRequest request){
|
|
|
|
|
|
// check and init请求参数
|
|
|
List<Integer> statusQuery = initOrderListRequest(request);
|
|
|
TabType actor = request.getActor();
|
|
|
int total = getTotal(request.getUid(), statusQuery);
|
|
|
int limit = request.getLimit();
|
|
|
PageResp.PageRespBuilder respBuilder = PageResp.builder()
|
|
|
.page(request.getPage())
|
|
|
.pageSize(limit)
|
|
|
.total(total)
|
|
|
.pagetotal((total % limit == 0) ? (total / limit) : (total / limit + 1));
|
|
|
if (total == 0){
|
|
|
return respBuilder.build();
|
|
|
}
|
|
|
|
|
|
int offset = (request.getPage() - 1) * limit;
|
|
|
|
|
|
List<BuyerOrder> buyerOrderList = getOrderList(request.getUid(), statusQuery, offset, limit);
|
|
|
|
|
|
List<Long> orderCodeList = buyerOrderList.stream().map(BuyerOrder::getOrderCode).collect(Collectors.toList());
|
|
|
//TODO 可以提前计算 total offset limit三者之间的关系,减少一次网络I
|
|
|
if (CollectionUtils.isEmpty(orderCodeList)){
|
|
|
return respBuilder.build();
|
|
|
}
|
|
|
// buyer_order_goods ===> skup+商品成交价 1:1
|
|
|
List<BuyerOrderGoods> buyerOrderGoodsList = getOrderGoodsList(request.getUid(), orderCodeList);
|
|
|
Map<Long, BuyerOrderGoods> buyerOrderGoodsMap = buyerOrderGoodsList.stream()
|
|
|
.collect(Collectors.toMap(BuyerOrderGoods::getOrderCode, Function.identity(), (key1, key2) -> key2));
|
|
|
|
|
|
List<Integer> skups = buyerOrderGoodsList.stream().map(BuyerOrderGoods::getSkup).collect(Collectors.toList());
|
|
|
// seller_order_goods ===> 商品信息
|
|
|
List<SellerOrderGoods> sellerOrderGoodsList = getBaseOrderGoodsList(skups);
|
|
|
Map<Integer, SellerOrderGoods> sellerOrderGoodsMap = sellerOrderGoodsList.stream().collect(Collectors.toMap(SellerOrderGoods::getId, Function.identity()));
|
|
|
|
|
|
Map<Long,String> appraiseVideo = getAppraiseVideo(buyerOrderList);
|
|
|
|
|
|
List<OrderListInfo> data = Lists.newArrayList();
|
|
|
|
|
|
buyerOrderList.stream().forEach(buyerOrder -> {
|
|
|
OrderListInfo orderListInfo = convertOrderInfo(buyerOrderGoodsMap, sellerOrderGoodsMap, buyerOrder, actor, appraiseVideo);
|
|
|
if (orderListInfo == null) return;
|
|
|
data.add(orderListInfo);
|
|
|
});
|
|
|
|
|
|
PageResp orderListInfoRsp = respBuilder.data(data).build();
|
|
|
|
|
|
return orderListInfoRsp;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 获取返回结果
|
|
|
* @param buyerOrderGoodsMap
|
|
|
* @param sellerOrderGoodsMap
|
|
|
* @param buyerOrder
|
|
|
* @return
|
|
|
*/
|
|
|
OrderListInfo convertOrderInfo(Map<Long, BuyerOrderGoods> buyerOrderGoodsMap,
|
|
|
Map<Integer, SellerOrderGoods> sellerOrderGoodsMap,
|
|
|
BuyerOrder buyerOrder,
|
|
|
TabType tabType,
|
|
|
Map<Long,String> appraiseVideo) {
|
|
|
|
|
|
/**
|
|
|
* 1.查询 buyer_order
|
|
|
* 2.查询 buyer_order_goods ==> skup
|
|
|
* 3.查询 seller_order_goods
|
|
|
*/
|
|
|
OrderListInfo orderListInfo = new OrderListInfo();
|
|
|
Integer buyerUid;
|
|
|
Long orderCode;
|
|
|
|
|
|
orderListInfo.setUid(buyerUid=buyerOrder.getUid());
|
|
|
orderListInfo.setBuyerUid(buyerUid);
|
|
|
orderListInfo.setSellerUid(buyerOrder.getSellerUid());
|
|
|
orderListInfo.setOrderCode(orderCode=buyerOrder.getOrderCode());
|
|
|
orderListInfo.setRealPrice(buyerOrder.getAmount() == null ? "" : buyerOrder.getAmount().toPlainString());
|
|
|
|
|
|
boolean isOffline = BuyerOrderUtils.isOffline(buyerOrder.getAttributes());
|
|
|
orderListInfo.setIsOffline(isOffline ? "Y" : "N");
|
|
|
// 订单中状态显示
|
|
|
orderListInfo.setStatus(buyerOrder.getStatus() == null ? -1 : buyerOrder.getStatus());
|
|
|
OrderStatus orderStatus = OrderStatus.getOrderStatus(orderListInfo.getStatus());
|
|
|
|
|
|
if (orderStatus == null){
|
|
|
logger.warn("getOrderList orderStatus not exist, uid is {}, orderCode is {}, status is {}",
|
|
|
buyerUid,orderCode, buyerOrder.getStatus());
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
orderListInfo.setStatuStr(orderStatus.getStatusStr(tabType));
|
|
|
|
|
|
// 当订单状态是待付款, 显示leftTime
|
|
|
//Integer leftTime = getLeftTime(tabType, buyerUid, orderCode, buyerOrder.getStatus(), buyerOrder.getCreateTime());
|
|
|
TimeoutBo timeoutBo = calTimeout(tabType, buyerUid, orderCode, buyerOrder.getStatus(), buyerOrder.getCreateTime());
|
|
|
Integer leftTime = timeoutBo.getLeftTime();
|
|
|
orderListInfo.setLeftTime(leftTime);
|
|
|
orderListInfo.setTimeLimit(timeoutBo.getTimelimit());
|
|
|
// 按钮显示
|
|
|
List<ButtonShowBo> buttonShowBos = orderStatus.getListButtons(tabType);
|
|
|
|
|
|
orderListInfo.setButtons(formatButtons(buyerOrder, buttonShowBos == null ? new ArrayList<>() : new ArrayList<>(buttonShowBos), ViewType.LIST));
|
|
|
|
|
|
// 当剩余时间小于0
|
|
|
if (!CollectionUtils.isEmpty(orderListInfo.getButtons())){
|
|
|
if (orderListInfo.getLeftTime() != null && orderListInfo.getLeftTime() <= 0){
|
|
|
orderListInfo.getButtons().removeIf(x-> x!=null && ButtonShow.NOW_BUY.getCode().equals(x.getCode()));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
BuyerOrderGoods buyerOrderGoods = buyerOrderGoodsMap.get(buyerOrder.getOrderCode());
|
|
|
if (buyerOrderGoods == null){
|
|
|
logger.warn("getOrderList buyer goods not exist, uid is {}, orderCode is {}",
|
|
|
buyerOrder.getUid(), orderListInfo.getOrderCode());
|
|
|
return null;
|
|
|
}
|
|
|
orderListInfo.setSkup(buyerOrderGoods.getSkup());
|
|
|
|
|
|
SellerOrderGoods sellerOrderGoods = sellerOrderGoodsMap.get(buyerOrderGoods.getSkup());
|
|
|
if (sellerOrderGoods == null){
|
|
|
logger.warn("getOrderList seller goods not exist, uid is {}, orderCode is {}",
|
|
|
buyerOrder.getUid(), orderListInfo.getOrderCode());
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
GoodsInfo goodsInfo = new GoodsInfo();
|
|
|
goodsInfo.setColorName(sellerOrderGoods.getColorName());
|
|
|
goodsInfo.setProductName((isOffline ? "【门店订单】" : "") + sellerOrderGoods.getProductName());
|
|
|
goodsInfo.setGoodImg(ImageUrlAssist.getAllProductPicUrl(sellerOrderGoods.getImageUrl(), "goodsimg", "center", "d2hpdGU="));
|
|
|
goodsInfo.setSizeName(sellerOrderGoods.getSizeName());
|
|
|
goodsInfo.setGoodPrice(buyerOrderGoods.getGoodsPrice() == null ? "" :buyerOrderGoods.getGoodsPrice().toPlainString());
|
|
|
goodsInfo.setStorageId(sellerOrderGoods.getStorageId());
|
|
|
goodsInfo.setProductId(sellerOrderGoods.getProductId());
|
|
|
goodsInfo.setSkup(buyerOrderGoods.getSkup());
|
|
|
orderListInfo.setGoodsInfo(goodsInfo);
|
|
|
orderListInfo.setSecendLevelCreateTime(buyerOrder.getCreateTime());
|
|
|
orderListInfo.setCreateTime(DateUtil.formatDate(buyerOrder.getCreateTime(), DateUtil.yyyy_MM_dd_HH_mm_SS));
|
|
|
setAddressInfo(orderListInfo);
|
|
|
orderListInfo.setAppraiseVideoUrl(appraiseVideo.get(buyerOrder.getOrderCode()));
|
|
|
return orderListInfo;
|
|
|
}
|
|
|
|
|
|
abstract void setAddressInfo(OrderListInfo orderListInfo);
|
|
|
|
|
|
protected abstract void resetDynamicProporties(List<OrderListInfo> list,int type);
|
|
|
} |
...
|
...
|
|