feat 数据权限

This commit is contained in:
2024-07-03 14:45:16 +08:00
parent 3db76f2318
commit 435e82c2c0
16 changed files with 339 additions and 5 deletions

View File

@@ -71,7 +71,7 @@ public class DeviceService : IDeviceService
var registry = await _dbContext.Queryable<DeviceRegistryEntity>().Where(x => x.DeviceUniqueNo == request.UniqueNo).FirstAsync();
if (registry == null)
{
registry = new DeviceRegistryEntity()
registry = new DeviceRegistryEntity
{
DeviceUniqueNo = request.UniqueNo,
LastHeartbeatTime = DateTime.Now,