Parcourir la source

Merge branch 'CRM_15.7'

zwxi il y a 9 mois
Parent
commit
4b272b20b9
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      controllers/yb_research_signup_statistics.go

+ 6 - 0
controllers/yb_research_signup_statistics.go

@@ -65,6 +65,12 @@ func (this *BannerController) StatisticsItem() {
 		br.ErrMsg = "GetYbResearchSignupStatisticsItemsById,Err:" + err.Error()
 		return
 	}
+	if len(list) == 0 {
+		br.Ret = 200
+		br.Success = true
+		br.Msg = "获取成功"
+		return
+	}
 	resp.List = list
 	for _, v := range list {
 		resp.Total += v.Count