|
@@ -343,6 +343,9 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
|
|
pCount, eCount, dailyNum, customers, buyerNum := 0, 0, 0, 10, 0
|
|
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"])
|
|
|
|
+ service := this.Conn.Mysql.FindOne("bigmember_service", map[string]interface{}{
|
|
|
|
+ "id": serviceid,
|
|
|
|
+ }, "", "")
|
|
memberServiceMap[serviceid] = true
|
|
memberServiceMap[serviceid] = true
|
|
member.MemberPowerList = append(member.MemberPowerList, serviceid)
|
|
member.MemberPowerList = append(member.MemberPowerList, serviceid)
|
|
if serviceid == 14 { //项目数量
|
|
if serviceid == 14 { //项目数量
|
|
@@ -352,7 +355,7 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
|
|
if tEcount > eCount {
|
|
if tEcount > eCount {
|
|
eCount = tEcount
|
|
eCount = tEcount
|
|
}
|
|
}
|
|
- } else if serviceid == 17 || serviceid == 18 { //每日数据包
|
|
|
|
|
|
+ } else if common.IntAll((*service)["i_class"]) == 4 { //每日数据包
|
|
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"])
|