fix 初始化下载gainfomeal处理
This commit is contained in:
@@ -50,14 +50,17 @@ public class DataDownloadService : IDataDownloadService
|
|||||||
|
|
||||||
await DownloadAsync<LocalBusinessShiftMealRelationshipEntity>(item);
|
await DownloadAsync<LocalBusinessShiftMealRelationshipEntity>(item);
|
||||||
|
|
||||||
if (!await _dbContext.Queryable<LocalGainfoEntity>().AnyAsync())
|
if (!await _dbContext.Queryable<LocalGainfoEntity>().Where(x => x.Factory == item).AnyAsync())
|
||||||
{
|
{
|
||||||
await DownloadAsync<LocalGainfoEntity>(item);
|
await DownloadAsync<LocalGainfoEntity>(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!await _dbContext.Queryable<LocalGainfoMealEntity>().AnyAsync())
|
if (!await _dbContext.Queryable<LocalGainfoMealEntity>().AnyAsync())
|
||||||
{
|
{
|
||||||
await DownloadAsync<LocalGainfoMealEntity>(item);
|
foreach (var currentItem in factories)
|
||||||
|
{
|
||||||
|
await DownloadAsync<LocalGainfoMealEntity>(currentItem);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user