소스 검색

Merge branch 'feature/jiayue' into debug

hsun 1 년 전
부모
커밋
d5058ccccd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      models/jiayue/category.go

+ 1 - 1
models/jiayue/category.go

@@ -73,7 +73,7 @@ func GetIndexCategory(condition string, pars []interface{}, orderRule string) (c
 	}()
 
 	fields := "C.ID, C.PARENT_ID, C.PARENT_NAME, C.TYPE, C.CODE, C.NAME, C.ICON, C.SORTING, C.DESCRIPTION, C.USER_ID, C.PATH"
-	querySql := fmt.Sprintf(`SELECT %s FROM %s C JOIN %s R ON C.ID = R.INDEX_ID WHERE %s %s`, fields, IndexMenuTableName, IndexMenuRelateTableName, condition, orderRule)
+	querySql := fmt.Sprintf(`SELECT %s FROM %s C JOIN %s R ON C.ID = R.CATEGORY_ID WHERE %s %s`, fields, IndexMenuTableName, IndexMenuRelateTableName, condition, orderRule)
 	order := ``
 	if orderRule != "" {
 		order += fmt.Sprintf(` ORDER BY %s`, orderRule)