@@ -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
}