|
|
@@ -1,9 +1,11 @@
|
|
|
package com.zhongshu.iot.server.core.service.sync;
|
|
|
|
|
|
+import com.github.microservice.http.APIResponseModel;
|
|
|
import com.github.microservice.models.device.DeviceInfoSyncParam;
|
|
|
import com.github.microservice.models.device.DeviceSyncListParam;
|
|
|
import com.github.microservice.models.device.GateWaySyncParam;
|
|
|
import com.github.microservice.models.hxz.DevicePingInfoParam;
|
|
|
+import com.github.microservice.net.ResultContent;
|
|
|
import com.zhongshu.iot.server.core.dao.mqtt.DeviceInfoDao;
|
|
|
import com.zhongshu.iot.server.core.dao.mqtt.GateWay2DeviceDao;
|
|
|
import com.zhongshu.iot.server.core.dao.mqtt.GateWayInfoDao;
|
|
|
@@ -15,12 +17,10 @@ import com.zhongshu.iot.server.core.event.DeviceStateChangeEvent;
|
|
|
import com.zhongshu.iot.server.core.event.DeviceSyncEvent;
|
|
|
import com.zhongshu.iot.server.core.event.GateWaySyncEvent;
|
|
|
import com.zhongshu.iot.server.core.httpRequest.ApiRequestService;
|
|
|
-import com.github.microservice.http.APIResponseModel;
|
|
|
import com.zhongshu.iot.server.core.httpRequest.conf.FullCardAPIConfig;
|
|
|
import com.zhongshu.iot.server.core.service.base.SuperService;
|
|
|
import com.zhongshu.iot.server.core.service.user.OperationLogsService;
|
|
|
import com.zhongshu.iot.server.core.util.bean.BeanUtils;
|
|
|
-import com.github.microservice.net.ResultContent;
|
|
|
import lombok.SneakyThrows;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
@@ -188,6 +188,7 @@ public class DeviceSyncFullCardService extends SuperService {
|
|
|
List<GateWaySyncParam.GateWaySyncInfo> list = gateWayInfos.stream().map(it -> {
|
|
|
GateWaySyncParam.GateWaySyncInfo syncInfo = new GateWaySyncParam.GateWaySyncInfo();
|
|
|
BeanUtils.copyProperties(it, syncInfo);
|
|
|
+ syncInfo.setState(it.getOnLineState());
|
|
|
return syncInfo;
|
|
|
}).collect(Collectors.toList());
|
|
|
syncParam.setList(list);
|