Merge branch 'refs/heads/development'

This commit is contained in:
2024-06-26 16:21:24 +08:00
4 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ public class OldDeviceGainfoUploadRequest
public string Factory { get; set; }
[Required]
public string UniqueNo { get; set; }
public string DeviceUniqueNo { get; set; }
/// <summary>
/// 档案号

View File

@@ -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);
}

View File

@@ -29,7 +29,7 @@ public class OldDeviceGainfoEntity
/// 设备唯一号
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "设备唯一号", IndexGroupNameList = new[] { "unique_OldGainfos_no_code_unique" })]
public string UniqueNo { get; set; }
public string DeviceUniqueNo { get; set; }
/// <summary>
/// 处理状态