fix 字段名称修改

This commit is contained in:
2024-06-26 15:58:59 +08:00
parent d1b7dfae1e
commit 40c6d207ed
4 changed files with 3 additions and 3 deletions

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