fix 优化唯一编码更新问题
This commit is contained in:
@@ -82,6 +82,7 @@ public class DeviceService : IDeviceService
|
||||
if (!request.Id.HasValue)
|
||||
{
|
||||
entity = request.Adapt<DeviceEntity>();
|
||||
entity.UniqueNo = request.UniqueNo;
|
||||
entity.Code = Guid.NewGuid();
|
||||
await _dbContext.InsertAsync(entity);
|
||||
//同时保存注册信息
|
||||
|
||||
Reference in New Issue
Block a user