Эх сурвалжийг харах

风险等级测试过滤报告

kobe6258 6 сар өмнө
parent
commit
73c1147f79

+ 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 {