20230922-ljl-fixBug
ljl 1 year ago
parent 7d59bd0868
commit 9b94619fbf

@ -2,6 +2,7 @@ package com.ms.api.dto.dsapi.request;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
@ -20,6 +21,6 @@ public class ConsigneeInfoDTO {
private String address;
private String fullAddress;
private Boolean hasHide = true;
private List<String> hasDecryptFields;
private List<String> hasDecryptFields = new ArrayList<>();
private Boolean isManualInput = false;
}

@ -1065,6 +1065,8 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
throw new RuntimeException("订单不存在");
}
Map<String, OpOrder> orderIdAndOpOrderMap = orders.stream().collect(Collectors.toMap(OpOrder::getOrderId, x->x));
log.info("orderIdAndOpOrderMap" + orderIdAndOpOrderMap);;
Stream<Long> shopIdsStream = orders.stream().map(OpOrder::getShopId);
Set<Long> shopIdSet = shopIdsStream.collect(Collectors.toSet());
if (shopIdSet.size() != 1 || !shopIdSet.contains(shopId)) {

Loading…
Cancel
Save