浏览代码

风险等级测试过滤报告

kobe6258 6 月之前
父节点
当前提交
73c1147f79
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      controllers/report/report_controller.go

+ 5 - 5
controllers/report/report_controller.go

@@ -118,11 +118,11 @@ func (r *ReportController) List(permissionIds string) {
 			r.SuccessResult("查询报告列表成功", reports, result)
 			return
 		}
-		if len(permissionIdList) == 0 && len(reportOrgIds) > 0 {
-			err = exception.New(exception.UnknownError)
-			r.FailedResult("查询报告列表失败", result)
-			return
-		}
+		//if len(permissionIdList) == 0 && len(reportOrgIds) > 0 {
+		//	err = exception.New(exception.UnknownError)
+		//	r.FailedResult("查询报告列表失败", result)
+		//	return
+		//}
 
 		list, err := report.GetReportPage(r.PageInfo, reportOrgIds, false, isLogin(detailType))
 		if err != nil {