|
|
@@ -75,6 +75,7 @@ public class IotSendMessageService extends SuperService {
|
|
|
public ResultContent sendIotMessage(IotSendParam param) {
|
|
|
IotMainSearch search = new IotMainSearch();
|
|
|
BeanUtils.copyProperties(param, search);
|
|
|
+ search.setIotDataType(IotDataType.Device);
|
|
|
Pageable pageable = PageRequest.of(0, Integer.MAX_VALUE);
|
|
|
Page<IotMain> page = iotMainDao.page(pageable, search);
|
|
|
|
|
|
@@ -84,8 +85,8 @@ public class IotSendMessageService extends SuperService {
|
|
|
return ResultContent.buildFail("没有对应的设备物模型");
|
|
|
}
|
|
|
// list 去重
|
|
|
- list= list.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(
|
|
|
- () -> new TreeSet<>(Comparator.comparing(IotMain::getRealIotTopic))), ArrayList::new));
|
|
|
+ list = list.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(
|
|
|
+ () -> new TreeSet<>(Comparator.comparing(IotMain::getRealIotTopic))), ArrayList::new));
|
|
|
|
|
|
DeviceInfo deviceInfo = null;
|
|
|
GateWayInfo gateWayInfo = null;
|