|
@@ -6402,6 +6402,7 @@ func (this *StatisticReportController) UnusualRenewCompanyList() {
|
|
|
|
|
|
// 按月分组
|
|
|
monthMap := make(map[string]int)
|
|
|
+ monthCompanyMap := make(map[string]struct{})
|
|
|
monthList := make([]string, 0)
|
|
|
tmpDate, _ := time.ParseInLocation(utils.FormatYearMonthDate, startDate, time.Local)
|
|
|
tmpEndDate, _ := time.ParseInLocation(utils.FormatYearMonthDate, endDate, time.Local)
|
|
@@ -6449,8 +6450,12 @@ func (this *StatisticReportController) UnusualRenewCompanyList() {
|
|
|
if len(list) > 0 {
|
|
|
for _, v := range list {
|
|
|
t := v.ModifyTime.Format(utils.FormatYearMonthDate)
|
|
|
- if num, ok := monthMap[t]; ok {
|
|
|
- monthMap[t] = num + 1
|
|
|
+ name := fmt.Sprintf("%s_%d", t, v.CompanyId)
|
|
|
+ if _, ok := monthCompanyMap[name]; !ok {
|
|
|
+ if num, ok1 := monthMap[t]; ok1 {
|
|
|
+ monthMap[t] = num + 1
|
|
|
+ }
|
|
|
+ monthCompanyMap[name] = struct{}{}
|
|
|
}
|
|
|
}
|
|
|
}
|