|
@@ -5,6 +5,7 @@ import (
|
|
|
"hongze/hongze_yb/controller/response"
|
|
|
"hongze/hongze_yb/models/response/my_chart"
|
|
|
chartInfoModel "hongze/hongze_yb/models/tables/chart_info"
|
|
|
+ "hongze/hongze_yb/models/tables/edb_info_no_permission_admin"
|
|
|
myChartModel "hongze/hongze_yb/models/tables/my_chart"
|
|
|
"hongze/hongze_yb/models/tables/my_chart_classify"
|
|
|
myChartClassifyMappingModel "hongze/hongze_yb/models/tables/my_chart_classify_mapping"
|
|
@@ -116,6 +117,24 @@ func GetMyChartList(c *gin.Context) {
|
|
|
condition += " AND d.my_chart_classify_id = ?"
|
|
|
pars = append(pars, reqClassifyId)
|
|
|
}
|
|
|
+ // 获取当前账号的不可见指标
|
|
|
+ noPermissionChartIdList := make([]int, 0)
|
|
|
+ {
|
|
|
+ confList, err := edb_info_no_permission_admin.GetAllChartListByAdminId(userInfo.UserID)
|
|
|
+ if err != nil {
|
|
|
+ response.FailMsg("获取失败", "获取不可见指标配置数据失败, Err:"+err.Error(), c)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ for _, v := range confList {
|
|
|
+ noPermissionChartIdList = append(noPermissionChartIdList, v.ChartInfoId)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ lenNoPermissionChartIdList := len(noPermissionChartIdList)
|
|
|
+ if lenNoPermissionChartIdList > 0 {
|
|
|
+ condition += ` AND b.chart_info_id not in (?) `
|
|
|
+ pars = append(pars, noPermissionChartIdList)
|
|
|
+ }
|
|
|
|
|
|
// 分页
|
|
|
page, _ := strconv.Atoi(c.Query("Page"))
|