fix 部门数据重复处理
This commit is contained in:
@@ -35,8 +35,12 @@ public class DataDownloadService : IDataDownloadService
|
||||
await TruncateAsync();
|
||||
|
||||
foreach (var item in factories)
|
||||
{
|
||||
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