|
|
@@ -96,8 +96,8 @@ public class EnumToDictJob : IJob
|
|
|
if (enumDictType.Id == dbDictType.Id) continue;
|
|
|
|
|
|
// 数据不一致则删除
|
|
|
- _ = db.Deleteable<SysDictData>().Where(x => x.DictTypeId == dbDictType.Id).ExecuteCommandAsync();
|
|
|
- _ = db.Deleteable<SysDictType>().Where(x => x.Id == dbDictType.Id).ExecuteCommandAsync();
|
|
|
+ await db.Deleteable<SysDictData>().Where(x => x.DictTypeId == dbDictType.Id).ExecuteCommandAsync();
|
|
|
+ await db.Deleteable<SysDictType>().Where(x => x.Id == dbDictType.Id).ExecuteCommandAsync();
|
|
|
Console.WriteLine($"【{DateTime.Now}】删除字典数据: {dbDictType.Name}-{dbDictType.Code}");
|
|
|
}
|
|
|
}
|