Эх сурвалжийг харах

Merge branch 'CRM_15.6' into debug

zwxi 11 сар өмнө
parent
commit
d3aa0cec62

+ 13 - 5
controllers/roadshow/report.go

@@ -1426,12 +1426,20 @@ func (this *CalendarController) OverseasSellerReportList() {
 			tmpAllOnlineNumMap[index] += tmpOnlineNum
 			tmpAllOfflineNumMap[index] += tmpOfflineNum
 		}
-		tmpAdminReportRecord := roadshow.OverseasAdminReportRecord{
-			Name:                  researcher.RealName,
-			AdminId:               researcher.AdminId,
-			RsReportRecordNumList: tmpAdminRsReportRecordNumList,
+
+		// 数据都为0的时候不显示
+		adminTotalNum := 0
+		for _, v := range tmpAdminRsReportRecordNumList {
+			adminTotalNum += v.TryOutNum + v.CloseNum + v.FormalNum
+		}
+		if adminTotalNum > 0 {
+			tmpAdminReportRecord := roadshow.OverseasAdminReportRecord{
+				Name:                  researcher.RealName,
+				AdminId:               researcher.AdminId,
+				RsReportRecordNumList: tmpAdminRsReportRecordNumList,
+			}
+			RsReportRecordResp.List = append(RsReportRecordResp.List, tmpAdminReportRecord)
 		}
-		RsReportRecordResp.List = append(RsReportRecordResp.List, tmpAdminReportRecord)
 	}
 
 	//总体汇总数据