|
@@ -340,7 +340,7 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
|
|
serviceList := this.Conn.Mysql.Find("bigmember_service_user", bigmemberServiceUserQuery, "DISTINCT(s_serviceid),i_frequency", "", -1, -1)
|
|
serviceList := this.Conn.Mysql.Find("bigmember_service_user", bigmemberServiceUserQuery, "DISTINCT(s_serviceid),i_frequency", "", -1, -1)
|
|
logx.Info("-----bigmemberServiceUserQuery-------", bigmemberServiceUserQuery)
|
|
logx.Info("-----bigmemberServiceUserQuery-------", bigmemberServiceUserQuery)
|
|
if serviceList != nil && len(*serviceList) != 0 {
|
|
if serviceList != nil && len(*serviceList) != 0 {
|
|
- pCount, eCount, dailyNum, customers := 0, 0, 0, 10
|
|
|
|
|
|
+ pCount, eCount, dailyNum, customers, buyerNum := 0, 0, 0, 10, 0
|
|
for _, item := range *serviceList {
|
|
for _, item := range *serviceList {
|
|
serviceid := common.Int64All(item["s_serviceid"])
|
|
serviceid := common.Int64All(item["s_serviceid"])
|
|
memberServiceMap[serviceid] = true
|
|
memberServiceMap[serviceid] = true
|
|
@@ -356,12 +356,18 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
|
|
dailyNum = common.IntAll(item["i_frequency"])
|
|
dailyNum = common.IntAll(item["i_frequency"])
|
|
} else if serviceid == 7 { //潜在客户 关注客户
|
|
} else if serviceid == 7 { //潜在客户 关注客户
|
|
customers = common.IntAll(item["i_frequency"])
|
|
customers = common.IntAll(item["i_frequency"])
|
|
|
|
+ } else if serviceid == 24 || serviceid == 25 { //业主监控
|
|
|
|
+ bCount := common.IntAll(item["i_frequency"])
|
|
|
|
+ if bCount > buyerNum {
|
|
|
|
+ buyerNum = bCount
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
member.EntNum = int64(eCount)
|
|
member.EntNum = int64(eCount)
|
|
member.ProNum = int64(pCount)
|
|
member.ProNum = int64(pCount)
|
|
member.DailyNum = int64(dailyNum)
|
|
member.DailyNum = int64(dailyNum)
|
|
member.Customers = int64(customers)
|
|
member.Customers = int64(customers)
|
|
|
|
+ member.BuyerNum = int64(buyerNum)
|
|
}
|
|
}
|
|
//
|
|
//
|
|
if phone != "" {
|
|
if phone != "" {
|