Pārlūkot izejas kodu

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

鲍自强 9 mēneši atpakaļ
vecāks
revīzija
efb7da9505
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 9 0
      controllers/report.go

+ 9 - 0
controllers/report.go

@@ -192,6 +192,15 @@ func (this *ReportController) PdfList() {
 			return
 		}
 		classifyList := resp.Data
+		if len(classifyList) == 0 {
+			resp := new(response.ReportPdfResp)
+			br.Msg = "查询成功"
+			br.Ret = 200
+			br.Success = true
+			br.Data = resp
+			return
+		}
+
 		condition += ` AND classify_id_second IN (` + utils.GetOrmReplaceHolder(len(classifyList)) + `)`
 		for _, item := range classifyList {
 			pars = append(pars, item.Id)