|
@@ -73,11 +73,13 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
|
|
|
entnicheRoleId = 0 //企业级服务 企业管理员
|
|
|
entnicheIsNew = -1 //是否是新版商机管理
|
|
|
powerSource = 0 //商机管理服务
|
|
|
+ memberStatus = 0 //大会员
|
|
|
)
|
|
|
phone, _ := MC.If((*data)["s_phone"] != nil, (*data)["s_phone"], (*data)["s_m_phone"]).(string)
|
|
|
if phone != "" {
|
|
|
//大会员
|
|
|
- if memberStatus := MC.IntAll((*data)["i_member_status"]); memberStatus > 0 || ConfigJson.BigMemberOff {
|
|
|
+ memberStatus = MC.IntAll((*data)["i_member_status"])
|
|
|
+ if memberStatus > 0 || ConfigJson.BigMemberOff {
|
|
|
mainUserId := m.UserId
|
|
|
if memberStatus > 0 {
|
|
|
registerTime = MC.Int64All((*data)["i_member_endtime"])
|
|
@@ -189,6 +191,10 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
|
|
|
UserPowerMap[plv] = 1
|
|
|
}
|
|
|
}
|
|
|
+ //人员行为统计菜单-1、购买大会员且创建了企业的管理员;2、新版商机管理管理员;3、商机管理服务管理员
|
|
|
+ if entnicheRoleId > 0 && memberStatus > 0 {
|
|
|
+ UserPowerMap["50"] = 1
|
|
|
+ }
|
|
|
//必须是企业管理员-&-购买了企业级应用服务
|
|
|
c := Mysql.CountBySql(fmt.Sprintf(`SELECT COUNT(id) FROM %s WHERE ent_id = ? AND TO_DAYS(end_time) >= TO_DAYS(NOW()) AND (LOCATE('VIP订阅',product_type) OR LOCATE('大会员',product_type))`, EntnicheWaitEmpower), m.EntId)
|
|
|
logx.Info(entnicheRoleId, "cccccc:", c)
|