xiziwen il y a 1 semaine
Parent
commit
a3c55ce203
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      models/permission.go

+ 1 - 1
models/permission.go

@@ -130,7 +130,7 @@ func GetPermissionByClassifyId(classifyId int) (items []*ChartPermissionSearchKe
 
 func GetClassifyIdsByPermissionId(chartPermissionIdList []string) (classifyIds []string, err error) {
 	o := orm.NewOrmUsingDB("rddp")
-	sql := "SELECT GROUP_CONCAT(classify_id) FROM chart_permission_search_key_word_mapping WHERE `from` =  'rddp' and chart_permission_id IN (" + utils.GetOrmInReplace(len(chartPermissionIdList)) + ") and classify_id <> 0; "
+	sql := "SELECT classify_id FROM chart_permission_search_key_word_mapping WHERE `from` =  'rddp' and chart_permission_id IN (" + utils.GetOrmInReplace(len(chartPermissionIdList)) + ") and classify_id <> 0; "
 	_, err = o.Raw(sql, chartPermissionIdList).QueryRows(&classifyIds)
 	return
 }