fix 部门数据重复处理
This commit is contained in:
@@ -36,7 +36,11 @@ public class DataDownloadService : IDataDownloadService
|
||||
|
||||
foreach (var item in factories)
|
||||
{
|
||||
await DownloadAsync<LocalDepartmentEntity>(item);
|
||||
if (!await _dbContext.Queryable<LocalDepartmentEntity>().AnyAsync())
|
||||
{
|
||||
await DownloadAsync<LocalDepartmentEntity>(item);
|
||||
}
|
||||
|
||||
await DownloadAsync<LocalDeviceEntity>(item);
|
||||
await DownloadAsync<LocalDeviceRegistryEntity>(item);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user