From 8324f872ef3a4d0c978a9b1d062800c6a1701c12 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 01 十二月 2023 09:58:17 +0800
Subject: [PATCH] fix

---
 model/net_config.go |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/model/net_config.go b/model/net_config.go
index 39b9189..0223a47 100644
--- a/model/net_config.go
+++ b/model/net_config.go
@@ -172,7 +172,10 @@
 
 func (slf *NetConfigSearch) CreateBatch(records []*NetConfig) error {
 	var db = slf.build()
-	return db.Create(records).Error
+	for _, record := range records{
+		db.Create(record)
+	}
+	return nil
 }
 
 // InitDefaultData 鍒濆鍖栨暟鎹�

--
Gitblit v1.8.0