zhangchuanxing 1 mēnesi atpakaļ
vecāks
revīzija
d4d9d27193

+ 2 - 0
controllers/statistic_report.go

@@ -7325,6 +7325,7 @@ func getTodayStackCompanyListV2Rai(sysUser *system.Admin, currentIndex, pageSize
 	//归因标签
 	mapGetCompanyAscribeContent, mapContent := services.GetCompanyAscribeContentMap(ascribecompanyIds)
 	mapNoRenewedNote := services.GetCompanyNoRenewedNoteMap(ascribecompanyIds)
+	mapIsUserMaker := cygxService.GetCompanyProductIsUserMakerByCompanyIds(ascribecompanyIds) //根据公司ID获取近四周之内有决策人互动的客户
 	for _, item := range list {
 		item.AscribeContent = mapGetCompanyAscribeContent[fmt.Sprint("CID_", item.CompanyId, "PID_", item.ProductId)]
 		item.Content = mapContent[fmt.Sprint("CID_", item.CompanyId, "PID_", item.ProductId)]
@@ -7391,6 +7392,7 @@ func getTodayStackCompanyListV2Rai(sysUser *system.Admin, currentIndex, pageSize
 			Content:             v.Content,
 			PermissionName:      mappermissionName[v.CompanyContractId],
 			Money:               v.Money,
+			IsUserMaker:         mapIsUserMaker[v.CompanyId],
 		}
 		stackCompanyStatisticList = append(stackCompanyStatisticList, &stackCompanyStatistic)
 	}

+ 1 - 0
models/stack_company_statistic.go

@@ -109,6 +109,7 @@ type StackCompanyStatisticList struct {
 	Content             string    `description:"归因内容说明"`
 	PermissionName      string    `description:"权限名"`
 	Money               float64   `description:"合同金额"`
+	IsUserMaker         int       `description:"近四周之内是否包含决策人互动过 ,0否,1是"`
 }
 
 func GetStackCompanyList(condition, orderBy string, pars []interface{}, startSize, pageSize int) (items []*StackCompanyStatisticList, err error) {