Merge remote-tracking branch 'origin/lichang' into lite

This commit is contained in:
TsMask
2025-03-05 19:38:02 +08:00
4 changed files with 4 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ func (r ChartGraph) SelectGroup() []string {
// Insert 批量添加
func (r ChartGraph) Inserts(graphs []model.ChartGraph) int64 {
tx := db.DB("").CreateInBatches(graphs, 2000)
tx := db.DB("").CreateInBatches(graphs, 500)
if err := tx.Error; err != nil {
logger.Errorf("CreateInBatches err => %v", err)
}

View File

@@ -106,7 +106,7 @@ func (r *UDMAuthUser) SelectByIMSIAndNeID(imsi, neId string) model.UDMAuthUser {
// Insert 批量添加
func (r *UDMAuthUser) Inserts(uArr []model.UDMAuthUser) int64 {
tx := db.DB("").CreateInBatches(uArr, 3000)
tx := db.DB("").CreateInBatches(uArr, 500)
if err := tx.Error; err != nil {
logger.Errorf("CreateInBatches err => %v", err)
}

View File

@@ -96,7 +96,7 @@ func (r *UDMExtend) SelectByIMSIAndNeID(imsi, neId string) model.UDMExtend {
// Insert 批量添加
func (r *UDMExtend) Inserts(uArr []model.UDMExtend) int64 {
tx := db.DB("").CreateInBatches(uArr, 3000)
tx := db.DB("").CreateInBatches(uArr, 500)
if err := tx.Error; err != nil {
logger.Errorf("CreateInBatches err => %v", err)
}

View File

@@ -109,7 +109,7 @@ func (r *UDMSubUser) SelectByIMSIAndNeID(imsi, neId string) model.UDMSubUser {
// Insert 批量添加
func (r *UDMSubUser) Inserts(uArr []model.UDMSubUser) int64 {
tx := db.DB("").CreateInBatches(uArr, 2000)
tx := db.DB("").CreateInBatches(uArr, 500)
if err := tx.Error; err != nil {
logger.Errorf("CreateInBatches err => %v", err)
}