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