fix 判断是否存在
This commit is contained in:
@@ -178,7 +178,11 @@ public class GainfoUpdateService : IGainfoUpdateService
|
||||
|
||||
if (item.isowner == "T")
|
||||
{
|
||||
await _dbContext.InsertAsync(info);
|
||||
if (!await _dbContext.Queryable<GainfoEntity>().AnyAsync(x => x.Code == item.ename))
|
||||
{
|
||||
await _dbContext.InsertAsync(info);
|
||||
}
|
||||
|
||||
await _identityUserSyncService.SyncAccountAsync(info.Code, info.Name, info.IdNo, info.Factory);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user