Quellcode durchsuchen

Merge branch 'BI_Dashboard' into dm

zwxi vor 6 Monaten
Ursprung
Commit
e047a51403
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      models/bi_dashboard/bi_dashboard_classify.go

+ 1 - 1
models/bi_dashboard/bi_dashboard_classify.go

@@ -121,6 +121,6 @@ type RespPublicGroupListItem struct {
 
 // getByName
 func GetBiDashboardClassifyByName(classifyName string) (count int64, err error) {
-	err = global.DEFAULT_DmSQL.Where("bi_dashboard_classify_name = ?", classifyName).Count(&count).Error
+	err = global.DEFAULT_DmSQL.Model(&BiDashboardClassify{}).Where("bi_dashboard_classify_name = ?", classifyName).Count(&count).Error
 	return
 }