Ver Fonte

1.新增v4.2版本物流订单自建接口

lengfaqiang há 1 ano atrás
pai
commit
7aff03f4b0

+ 2 - 1
sckw-modules/sckw-transport/src/main/java/com/sckw/transport/service/KwtLogisticsOrderConsignmentService.java

@@ -1084,7 +1084,8 @@ public class KwtLogisticsOrderConsignmentService {
         List<String> addressIds = addressInfo.stream().map(AddressInfoDto::getAddressId).collect(Collectors.toList());
         Map<Long, EntAddressResDto> addressDetailMap = manageService.queryAddressListByAddressIdList(addressIds);
         if (addressDetailMap.isEmpty()){
-            return;
+            log.info("no address :{}",JSONObject.toJSONString(addressIds));
+            throw new BusinessException("地址信息异常");
         }
         Map<Integer, List<AddressInfoDto>> addressMap = addressInfo.stream().collect(Collectors.groupingBy(AddressInfoDto::getAddressType));
         List<AddressInfoDto> loadAddressInfoDtos = addressMap.get(1);