model/plc_brand.go
@@ -12,7 +12,7 @@ type ( // PlcBrand plc品牌 PlcBrand struct { gorm.Model CommonModel Name string `json:"name" gorm:"column:name;type:varchar(255);not null;default:''"` } @@ -54,7 +54,10 @@ func (slf *PlcBrandSearch) CreateBatch(records []*PlcBrand) error { var db = slf.build() return db.Create(records).Error for _, record := range records { db.Create(record) } return nil } func (slf *PlcBrandSearch) Delete() error {