Selaa lähdekoodia

Merge branch 'bzq/dev' of eta_mini/eta_mini_api into master

鲍自强 8 kuukautta sitten
vanhempi
commit
5019ec3258
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 9 0
      controllers/report.go

+ 9 - 0
controllers/report.go

@@ -610,6 +610,15 @@ func (this *ReportController) RecentList() {
 		}
 		classifyIds = append(classifyIds, reportClassifyId)
 	}
+	if len(classifyIds) == 0 {
+		tmp := response.ReportResp[response.ReportList]{}
+		br.Data = tmp
+		br.Msg = "查询成功"
+		br.Ret = 200
+		br.Success = true
+		return
+	}
+
 	classifyResp, err := services.GetFirstChartPermission(classifyIds)
 	if err != nil {
 		br.Msg = "研报列表查询失败"