...
|
...
|
@@ -425,7 +425,7 @@ public class AppraiseOrderServiceImpl implements IAppraiseOrderService { |
|
|
resp.setAttributesStr(OrderConfigConstant.getAppraiseOrderAttributeStr(order.getAttributes(), RegionEnum.MAINLAND.getCode()));
|
|
|
|
|
|
//卖家物流单号
|
|
|
ExpressRecord sellerExpressRecord = expressRecordMapper.selectByOrderCodeAndType(order.getParentOrderCode(),
|
|
|
ExpressRecord sellerExpressRecord = expressRecordMapper.selectByOrderCodeAndType(order.getAttributes().equals(OrderAttributes.DEPOSITE.getCode()) ? order.getParentOrderCode() : order.getOrderCode(),
|
|
|
order.getUid(), EnumExpressType.EXPRESS_TYPE_1.getCode());
|
|
|
if(null != sellerExpressRecord) {
|
|
|
resp.setSellerWaybillCode(sellerExpressRecord.getWaybillCode());
|
...
|
...
|
@@ -646,7 +646,16 @@ public class AppraiseOrderServiceImpl implements IAppraiseOrderService { |
|
|
Map<String, AppraiseOrderStorage> appraiseStorageMap = appraiseStorageList.stream().collect(Collectors.toMap(AppraiseOrderStorage::getOrderCode, s->s));
|
|
|
|
|
|
//查询卖家快递单号
|
|
|
List<ExpressRecord> expressRecordList =expressRecordMapper.selectByOrderCodeListAndType(orderCodeList, Lists.newArrayList(EnumExpressType.EXPRESS_TYPE_1.getCode()));
|
|
|
List<String> expressOrderCodeList = Lists.newArrayList();
|
|
|
for(AppraiseOrder item : orderList) {
|
|
|
if(item.getAttributes().equals(OrderAttributes.APPRAISE.getCode())) {
|
|
|
expressOrderCodeList.add(item.getOrderCode());
|
|
|
}else if(item.getAttributes().equals(OrderAttributes.DEPOSITE.getCode())) {
|
|
|
expressOrderCodeList.add(item.getParentOrderCode());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
List<ExpressRecord> expressRecordList =expressRecordMapper.selectByOrderCodeListAndType(expressOrderCodeList, Lists.newArrayList(EnumExpressType.EXPRESS_TYPE_1.getCode()));
|
|
|
Map<String, ExpressRecord> expressRecordMap = expressRecordList.stream().collect(Collectors.toMap(ExpressRecord::getOrderCode, e->e));
|
|
|
|
|
|
return convertToResp(orderList, appraiseGoodsMap, appraiseStorageMap, expressRecordMap);
|
...
|
...
|
@@ -662,7 +671,12 @@ public class AppraiseOrderServiceImpl implements IAppraiseOrderService { |
|
|
}
|
|
|
AppraiseOrderResp resp = new AppraiseOrderResp();
|
|
|
resp.setOrderCode(item.getOrderCode());
|
|
|
resp.setSellerWaybillCode(null == expressInfoMap.get(item.getOrderCode()) ? "" : expressInfoMap.get(item.getOrderCode()).getWaybillCode());
|
|
|
if(item.getAttributes().equals(OrderAttributes.APPRAISE.getCode())) {
|
|
|
resp.setSellerWaybillCode(null == expressInfoMap.get(item.getOrderCode()) ? "" : expressInfoMap.get(item.getOrderCode()).getWaybillCode());
|
|
|
}else if(item.getAttributes().equals(OrderAttributes.DEPOSITE.getCode())) {
|
|
|
resp.setSellerWaybillCode(null == expressInfoMap.get(item.getParentOrderCode()) ? "" : expressInfoMap.get(item.getParentOrderCode()).getWaybillCode());
|
|
|
}
|
|
|
|
|
|
resp.setProductName(appraiseGoodsMap.get(item.getOrderCode()).getProductName());
|
|
|
resp.setProductImage(ImagesHelper.getImageAbsoluteUrl(appraiseGoodsMap.get(item.getOrderCode()).getImageUrl(), ImagesConstant.BUCKET_GOODS_IMG));
|
|
|
resp.setProductCode(appraiseGoodsMap.get(item.getOrderCode()).getProductCode());
|
...
|
...
|
|