|
@@ -110,8 +110,8 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @ApiOperation("设备健康状况")
|
|
|
|
- public R health(DeviceInfoDto.Obj obj) {
|
|
|
|
|
|
+ @ApiOperation("开门检测")
|
|
|
|
+ public R checkOpenDoor(DeviceInfoDto.Obj obj) {
|
|
DeviceInfoDto.Vo deviceInfo = obj(new DeviceInfoDto.Obj().setDeviceId(obj.getDeviceId())).getData();
|
|
DeviceInfoDto.Vo deviceInfo = obj(new DeviceInfoDto.Obj().setDeviceId(obj.getDeviceId())).getData();
|
|
if (deviceInfo == null) {
|
|
if (deviceInfo == null) {
|
|
return R.fail("设备不存在");
|
|
return R.fail("设备不存在");
|