From 02a84fb6fb2a39bfe7fc5cf6c0137bbf231b17fe Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 09 十一月 2023 14:14:17 +0800 Subject: [PATCH] 设备列表返回是否设置工艺参数字段 --- 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