[後端] 修改同步錯誤

This commit is contained in:
dev02 2023-10-31 16:25:42 +08:00
parent 12208825d9
commit 12b1a14319

View File

@ -443,10 +443,18 @@ namespace Repository.BackendRepository.Implement
using (TransactionScope scope = new TransactionScope((TransactionScopeOption)TransactionScopeAsyncFlowOption.Enabled))
{
await conn.ExecuteAsync(sb.ToString());
await conn.ExecuteAsync(sb2.ToString());
}
sb.Clear();
}
if (sb2.Length > 0)
{
using (TransactionScope scope = new TransactionScope((TransactionScopeOption)TransactionScopeAsyncFlowOption.Enabled))
{
await conn.ExecuteAsync(sb2.ToString());
}
sb2.Clear();
}
}