|
@@ -358,7 +358,7 @@ func GetReportDetail(userinfo user.UserInfo, reportId int) (reportDetail respons
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if reportInfo.Stage != 2 {
|
|
|
+ if reportInfo.State != 2 {
|
|
|
err = errors.New("报告未发布")
|
|
|
return
|
|
|
}
|
|
@@ -613,7 +613,7 @@ func GetReportList(user user.UserInfo, keyWord string, classifyIdFirst, classify
|
|
|
return
|
|
|
}
|
|
|
total = int64(total1)
|
|
|
- if searchResp.Hits != nil {
|
|
|
+ if searchResp.Hits != nil && total > 0 {
|
|
|
var reportIds []int
|
|
|
for _, v := range searchResp.Hits.Hits {
|
|
|
temp := new(report.Report)
|