|
@@ -5404,7 +5404,7 @@ func (this *StatisticReportController) RenewCompanyStatistics() {
|
|
|
tmpAllExpireIdMap := make(map[int]string)
|
|
|
tmpAllRenewIdMap := make(map[int]string)
|
|
|
tmpAllUnusualRenewIdMap := make(map[int]string) // 续约异常客户id汇总
|
|
|
-
|
|
|
+ tmpAllUnusualRenewIdSlice := make(map[int][]string, 0)
|
|
|
for _, v := range group {
|
|
|
v.ResearcherList = groupMap[v.GroupId]
|
|
|
tmpGroupAdminRenewRecord := make([]statistic_report.AdminRenewRecord, 0)
|
|
@@ -5535,6 +5535,7 @@ func (this *StatisticReportController) RenewCompanyStatistics() {
|
|
|
}
|
|
|
if tmpUnusualRenewId != "" {
|
|
|
tmpGroupUnusualRenewIdSliceMap[index] = append(tmpGroupUnusualRenewIdSliceMap[index], tmpUnusualRenewId)
|
|
|
+ tmpAllUnusualRenewIdSlice[index] = append(tmpAllUnusualRenewIdSlice[index], tmpUnusualRenewId)
|
|
|
}
|
|
|
|
|
|
//总数据汇总
|
|
@@ -5603,10 +5604,9 @@ func (this *StatisticReportController) RenewCompanyStatistics() {
|
|
|
//总体汇总数据
|
|
|
for i := 0; i < len(tmpAllRenewFollowNumMap); i++ {
|
|
|
// 未续约统计数据去重
|
|
|
- unusualRenewIds := strings.Split(tmpAllUnusualRenewIdMap[i], ",")
|
|
|
unusualRenewIdsFinal := make([]string, 0)
|
|
|
unusualRenewIdsMap := make(map[string]struct{})
|
|
|
- for _, id := range unusualRenewIds {
|
|
|
+ for _, id := range tmpAllUnusualRenewIdSlice[i] {
|
|
|
if _, ok := unusualRenewIdsMap[id]; !ok {
|
|
|
unusualRenewIdsFinal = append(unusualRenewIdsFinal, id)
|
|
|
unusualRenewIdsMap[id] = struct{}{}
|