xiziwen 1 päivä sitten
vanhempi
commit
f04fdc2460
1 muutettua tiedostoa jossa 10 lisäystä ja 11 poistoa
  1. 10 11
      controllers/data_manage/edb_classify.go

+ 10 - 11
controllers/data_manage/edb_classify.go

@@ -1256,12 +1256,12 @@ func (this *EdbInfoController) ClassifyEdbInfoList() {
 	var pars []interface{}
 
 	// 已授权分类id
-	permissionClassifyIdList, err := data_manage_permission.GetUserEdbClassifyPermissionList(this.SysUser.AdminId, 0)
-	if err != nil {
-		br.Msg = "获取失败"
-		br.ErrMsg = "获取已授权分类id数据失败,Err:" + err.Error()
-		return
-	}
+	//permissionClassifyIdList, err := data_manage_permission.GetUserEdbClassifyPermissionList(this.SysUser.AdminId, 0)
+	//if err != nil {
+	//	br.Msg = "获取失败"
+	//	br.ErrMsg = "获取已授权分类id数据失败,Err:" + err.Error()
+	//	return
+	//}
 	classifyIdsArr := make([]int, 0)
 	for _, v := range classifyIds {
 		if v != `` {
@@ -1270,9 +1270,9 @@ func (this *EdbInfoController) ClassifyEdbInfoList() {
 		}
 	}
 
-	if len(permissionClassifyIdList) > 0 {
-		classifyIdsArr = utils.IntersectInt(permissionClassifyIdList, classifyIdsArr)
-	}
+	//if len(permissionClassifyIdList) > 0 {
+	//	classifyIdsArr = utils.IntersectInt(permissionClassifyIdList, classifyIdsArr)
+	//}
 
 	condition += " AND edb_info_type = 0 "
 	if len(classifyIdsArr) > 0 {
@@ -1298,9 +1298,8 @@ func (this *EdbInfoController) ClassifyEdbInfoList() {
 			condition += " AND classify_id IN(" + utils.GetOrmInReplace(len(finalClassifyIds)) + ") "
 			pars = append(pars, finalClassifyIds)
 		}
-	} else {
-		condition += " AND 1=2 "
 	}
+
 	if keyWord != "" {
 		keyWordArr := strings.Split(keyWord, " ")
 		if len(keyWordArr) > 0 {