加上修改原因说明
This commit is contained in:
parent
c116a5eb9c
commit
361e8d1f92
@ -59,7 +59,8 @@ public class EnumToDictJob : IJob
|
|||||||
await db.Updateable(updatedDictDatas).ExecuteCommandAsync(stoppingToken);
|
await db.Updateable(updatedDictDatas).ExecuteCommandAsync(stoppingToken);
|
||||||
|
|
||||||
if (newSysDictDatas.Count > 0)
|
if (newSysDictDatas.Count > 0)
|
||||||
{
|
{
|
||||||
|
//达梦 下用db.Insertable(newDictTypes).ExecuteCommandAsync(stoppingToken);插入400条以上会内容溢出错误,所以改用逐条插入
|
||||||
foreach (var dd in newSysDictDatas)
|
foreach (var dd in newSysDictDatas)
|
||||||
await db.Insertable(dd).ExecuteCommandAsync(stoppingToken);
|
await db.Insertable(dd).ExecuteCommandAsync(stoppingToken);
|
||||||
}
|
}
|
||||||
@ -68,7 +69,8 @@ public class EnumToDictJob : IJob
|
|||||||
await db.Insertable(newDictTypes).ExecuteCommandAsync(stoppingToken);
|
await db.Insertable(newDictTypes).ExecuteCommandAsync(stoppingToken);
|
||||||
|
|
||||||
if (newDictDatas.Count > 0)
|
if (newDictDatas.Count > 0)
|
||||||
{
|
{
|
||||||
|
//达梦 下用db.Insertable(newDictTypes).ExecuteCommandAsync(stoppingToken);插入400条以上会内容溢出错误,所以改用逐条插入
|
||||||
foreach (var dd in newDictDatas)
|
foreach (var dd in newDictDatas)
|
||||||
await db.Insertable(dd).ExecuteCommandAsync(stoppingToken);
|
await db.Insertable(dd).ExecuteCommandAsync(stoppingToken);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user