fix 字段名称修改
This commit is contained in:
@@ -8,7 +8,7 @@ public class OldDeviceGainfoUploadRequest
|
||||
public string Factory { get; set; }
|
||||
|
||||
[Required]
|
||||
public string UniqueNo { get; set; }
|
||||
public string DeviceUniqueNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 档案号
|
||||
|
||||
@@ -21,7 +21,7 @@ public class OldGainfoService : IOldDeviceGainfoService
|
||||
|
||||
foreach (var entity in entities)
|
||||
{
|
||||
if (!await _dbContext.Queryable<OldDeviceGainfoEntity>().AnyAsync(x => x.No == entity.No && x.Code == entity.Code && x.UniqueNo == entity.UniqueNo))
|
||||
if (!await _dbContext.Queryable<OldDeviceGainfoEntity>().AnyAsync(x => x.No == entity.No && x.Code == entity.Code && x.DeviceUniqueNo == entity.DeviceUniqueNo))
|
||||
{
|
||||
await _dbContext.InsertAsync(entity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user