|
@@ -19,7 +19,6 @@ type LineFeaturesChartClassifyController struct {
|
|
|
// ChartClassifyList
|
|
|
// @Title 统计特征图表分类列表
|
|
|
// @Description 统计特征图表分类列表接口
|
|
|
-// @Param IsShowMe query bool true "是否只看我的,true、false"
|
|
|
// @Param Source query int true "图表类型,3:统计特征,4:滚动统计特征"
|
|
|
// @Success 200 {object} data_manage.ChartClassifyListResp
|
|
|
// @router /chart_classify/list [get]
|
|
@@ -46,21 +45,6 @@ func (this *LineFeaturesChartClassifyController) ChartClassifyList() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- isShowMe, _ := this.GetBool("IsShowMe")
|
|
|
- if isShowMe {
|
|
|
- errMsg, err := getChartClassifyListForMe(*this.SysUser, resp)
|
|
|
- if err != nil {
|
|
|
- br.Msg = errMsg
|
|
|
- br.ErrMsg = err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
- br.Ret = 200
|
|
|
- br.Success = true
|
|
|
- br.Msg = "获取成功"
|
|
|
- br.Data = resp
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
source := utils.CHART_SOURCE_LINE_FEATURE_STANDARD_DEVIATION
|
|
|
|
|
|
rootList, err := data_manage.GetChartClassifyByParentId(0, source, this.SysUser.AdminId)
|
|
@@ -79,10 +63,6 @@ func (this *LineFeaturesChartClassifyController) ChartClassifyList() {
|
|
|
|
|
|
chartInfoMap := make(map[int][]*data_manage.ChartClassifyItems)
|
|
|
for _, v := range allChartInfo {
|
|
|
- if !isShowMe {
|
|
|
- chartInfoMap[v.ChartClassifyId] = append(chartInfoMap[v.ChartClassifyId], v)
|
|
|
- continue
|
|
|
- }
|
|
|
if v.SysUserId != this.SysUser.AdminId {
|
|
|
continue
|
|
|
}
|