Browse Source

feat(all): 修改梦天回推逻辑

dist.1.3.0
zhaoqiaobo 6 months ago
parent
commit
673c0e6118
  1. 8
      blade-service/logpm-factory-data/logpm-factory-data-mengtian/src/main/java/com/logpm/factorydata/mengtian/mq/NodeDataPushListener.java

8
blade-service/logpm-factory-data/logpm-factory-data-mengtian/src/main/java/com/logpm/factorydata/mengtian/mq/NodeDataPushListener.java

@ -45,6 +45,7 @@ import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
/**
@ -151,7 +152,12 @@ public class NodeDataPushListener {
for (Map.Entry<String, List<MtPushDataDTO>> stringListEntry : collect.entrySet()) {
String senderCode = stringListEntry.getKey();
List<MtPushDataDTO> mtPushDataDTOS1 = stringListEntry.getValue();
Map<String, MtPushDataDTO> mtPushDataDTOMap = mtPushDataDTOS1.stream().collect(Collectors.toMap(MtPushDataDTO::getOrderCode, mtPushDataDTO -> mtPushDataDTO));
Map<String, MtPushDataDTO> mtPushDataDTOMap = mtPushDataDTOS1.stream()
.collect(Collectors.toMap(
MtPushDataDTO::getOrderCode,
Function.identity(),
(existing, replacement) -> existing
));
CentralStkInConfirmVO confirmVO = CentralStkInConfirmVO.builder()
.senderCode(senderCode)
.operatingTime(operatorTime)

Loading…
Cancel
Save