fix 设备模板保存优化
This commit is contained in:
@@ -46,6 +46,7 @@ public class DeviceTemplateService : IDeviceTemplateService
|
||||
{
|
||||
var entity = await _dbContext.Queryable<DeviceTemplateEntity>().Where(x => x.Id == request.Id).FirstAsync();
|
||||
await ExistsDeviceUsingTemplateAsync(entity.Code);
|
||||
request.Adapt(entity);
|
||||
await _dbContext.UpdateAsync(entity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user