From d9ee0e7f2d1259e08a4d85a193a20d82810e498a Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 22 Feb 2023 18:17:51 +0800 Subject: [PATCH] Synchronization code --- .../Oracle/SqlBuilder/OracleInsertBuilder.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs b/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs index db4f313d2..cdb2cc3e8 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs @@ -58,7 +58,12 @@ namespace SqlSugar } else { - string result = Big(identities, groupList, columnsString); + var pageSize = bigSize; + if (pageSize > 100) + { + pageSize = 100; + } + string result = Big(identities, groupList, columnsString, pageSize); return result; } } @@ -87,9 +92,9 @@ namespace SqlSugar return bigSize; } - private string Big(List identities, List> groupList, string columnsString) + private string Big(List identities, List> groupList, string columnsString, int pageSize) { - this.Context.Utilities.PageEach(groupList, 100, groupListPasge => + this.Context.Utilities.PageEach(groupList, pageSize, groupListPasge => { this.Parameters = new List(); var sql = Small(identities, groupListPasge, columnsString);