kobe6258 2 месяцев назад
Родитель
Сommit
100df4ce99
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      models/data_manage/base_from_smm.go

+ 3 - 3
models/data_manage/base_from_smm.go

@@ -386,9 +386,9 @@ type BaseFromSmmIndexItem struct {
 	Name               string
 	IndexCode          string
 	IndexName          string
-	Type1              string `orm:"column(type_1)"`
-	Type2              string `orm:"column(type_2)"`
-	Type3              string `orm:"column(type_3)"`
+	Type1              string `gorm:"column:type_1"`
+	Type2              string `gorm:"column:type_2"`
+	Type3              string `gorm:"column:type_3"`
 	Frequency          string
 	Unit               string
 	ApiStartTime       string