|
@@ -98,6 +98,10 @@ public class DevicePingInfoService extends SuperService {
|
|
|
public ResultContent<Object> ping(String dataStr) {
|
|
public ResultContent<Object> ping(String dataStr) {
|
|
|
PingResult pingResult = new PingResult();
|
|
PingResult pingResult = new PingResult();
|
|
|
GateWayPingInfoParam param = JSONUtil.toBean(dataStr, GateWayPingInfoParam.class);
|
|
GateWayPingInfoParam param = JSONUtil.toBean(dataStr, GateWayPingInfoParam.class);
|
|
|
|
|
+ if (StringUtils.isEmpty(param.getGateWayId())) {
|
|
|
|
|
+ pingResult.setFailed("");
|
|
|
|
|
+ return ResultContent.buildFail("GateWayId为空");
|
|
|
|
|
+ }
|
|
|
if (StringUtils.isNotEmpty(param.getDeviceId())) {
|
|
if (StringUtils.isNotEmpty(param.getDeviceId())) {
|
|
|
devicePing(dataStr);
|
|
devicePing(dataStr);
|
|
|
} else {
|
|
} else {
|