Commit 8fb07f3d by gdj

fix dock delete method

parent 9c71bfcc
...@@ -774,9 +774,9 @@ public class DeviceServiceImpl extends ServiceImpl<IDeviceMapper, DeviceEntity> ...@@ -774,9 +774,9 @@ public class DeviceServiceImpl extends ServiceImpl<IDeviceMapper, DeviceEntity>
LambdaQueryWrapper<DeviceEntity> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<DeviceEntity> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(DeviceEntity::getWorkspaceId, workspaceId); queryWrapper.eq(DeviceEntity::getWorkspaceId, workspaceId);
queryWrapper.eq(DeviceEntity::getId, id); queryWrapper.eq(DeviceEntity::getId, id);
DeviceEntity dbDevice = this.getOne(queryWrapper);
int delete = this.mapper.delete(queryWrapper); return deleteDevice(dbDevice.getDeviceSn());
return delete > 0;
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment