fix 增加事务和deviceUsers标记处理
This commit is contained in:
@@ -548,6 +548,12 @@ public class DevicePermissionService : IDevicePermissionService
|
||||
.Select(x => x.No)
|
||||
.ToListAsync();
|
||||
|
||||
await _dbContext.Updateable<DeviceUserEntity>()
|
||||
.SetColumns(x => x.IsDeleted == true)
|
||||
.SetColumns(x => x.ModifiedTime == DateTime.Now)
|
||||
.Where(x => x.DeviceUniqueNo == deviceUniqueNo)
|
||||
.ExecuteCommandAsync();
|
||||
|
||||
return await _dbContext.InsertAsync(userNos.Select(x => new DeviceTaskEntity
|
||||
{
|
||||
DeviceUniqueNo = device.UniqueNo,
|
||||
|
||||
Reference in New Issue
Block a user