|
@@ -153,7 +153,7 @@ func matchRiskLevel(userId int, report reportService.ReportDTO) (riskLevelMatch
|
|
|
|
|
|
func GetReportById(reportId int, login bool, userId int) (report *reportService.ReportDTO, err error) {
|
|
|
var reportInfo reportService.ReportDTO
|
|
|
- reportInfo, err = reportService.GetReportById(reportId)
|
|
|
+ reportInfo, err = reportService.GetReportById(reportId, userId)
|
|
|
if err != nil {
|
|
|
logger.Error("获取研报失败:%v,研报ID:%d", err, report.ReportID)
|
|
|
err = exception.NewWithException(exception.GetReportFailed, err.Error())
|
|
@@ -427,7 +427,7 @@ func GetReportPageByAnalyst(pageInfo page.PageInfo, analyst string, reportIds []
|
|
|
return
|
|
|
}
|
|
|
func CountReport(count RecordCount) (traceId string, err error) {
|
|
|
- report, err := reportService.GetReportById(count.ReportId)
|
|
|
+ report, err := reportService.GetReportById(count.ReportId, 0)
|
|
|
if err != nil {
|
|
|
err = exception.New(exception.GetReportFailed)
|
|
|
return
|