Authored by qinchao

物流查看兼容:多订单一个物流号,add日志

... ... @@ -594,9 +594,11 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
//原来的情况,根据订单号直接查询物流,如果存在物流信息,则直接返回,否则有可能是多单一号
List<ExpressInfo> list = expressInfoMapper.selectByOrderCodeAndType(orderCode, convertExpressType(expressType));
if(CollectionUtils.isNotEmpty(list)) {
LOGGER.info("getExpressInfoListByStage success have data in express info orderCode = {} ,expressType = {} ",orderCode,expressType);
return list;
}
LOGGER.info("getExpressInfoListByStage begin query express record ,orderCode = {} ,expressType = {} ",orderCode,expressType);
List<String> orderCodeList = Lists.newArrayList();
orderCodeList.add(orderCode);
List<ExpressRecord> records = expressRecordMapper.selectByOrderCodeListAndType(orderCodeList,convertExpressType(expressType));
... ...