xiziwen 1 week ago
parent
commit
a3c55ce203
1 changed files with 1 additions and 1 deletions
  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
 }