Prechádzať zdrojové kódy

fix:报告权限调整

Roc 3 rokov pred
rodič
commit
d22566c806

+ 1 - 1
models/tables/company_report_permission/custom_query.go

@@ -67,7 +67,7 @@ func GetResearchReportType(researchReportId, userId uint64, reportType string) (
 			for _, v := range reportChapterTypeList {
 			for _, v := range reportChapterTypeList {
 				reportChapterTypeIdList = append(reportChapterTypeIdList, v.ReportChapterTypeId)
 				reportChapterTypeIdList = append(reportChapterTypeIdList, v.ReportChapterTypeId)
 			}
 			}
-			condition += ` and rct.report_chapter_type_id in (?) `
+			condition += ` and rct.report_chapter_type_id in ? `
 			whereVals = append(whereVals, reportChapterTypeIdList)
 			whereVals = append(whereVals, reportChapterTypeIdList)
 
 
 		}
 		}