Browse Source

fix:商机管理订阅设置修改

duxin 1 year ago
parent
commit
0b0150a760
1 changed files with 3 additions and 3 deletions
  1. 3 3
      common/src/qfw/util/jy/subScribe.go

+ 3 - 3
common/src/qfw/util/jy/subScribe.go

@@ -81,14 +81,14 @@ func GetSubScribeInfo(session *httpsession.Session, mg mongodb.MongodbSim, types
 	return object
 	return object
 }
 }
 
 
-//商机管理订阅设置
+// 商机管理订阅设置
 func EntnicheSub(entUserId, entId int64, types int64, mg mongodb.MongodbSim) *map[string]interface{} {
 func EntnicheSub(entUserId, entId int64, types int64, mg mongodb.MongodbSim) *map[string]interface{} {
 	object := &map[string]interface{}{}
 	object := &map[string]interface{}{}
 	entnicheJy := &map[string]interface{}{}
 	entnicheJy := &map[string]interface{}{}
 	res, _ := mg.FindOne("entniche_rule", map[string]interface{}{
 	res, _ := mg.FindOne("entniche_rule", map[string]interface{}{
 		"i_userid": entUserId,
 		"i_userid": entUserId,
 		"i_entid":  entId,
 		"i_entid":  entId,
-		"types":    types,
+		"i_type":   types,
 	})
 	})
 	if types == 2 {
 	if types == 2 {
 		if (*res)["o_entniche"] != nil {
 		if (*res)["o_entniche"] != nil {
@@ -115,7 +115,7 @@ func EntnicheSub(entUserId, entId int64, types int64, mg mongodb.MongodbSim) *ma
 	return entnicheJy
 	return entnicheJy
 }
 }
 
 
-//格式化数据 大会员/超级订阅/商机管理 结构一致 关键词格式化
+// 格式化数据 大会员/超级订阅/商机管理 结构一致 关键词格式化
 func format(data *map[string]interface{}) *map[string]interface{} {
 func format(data *map[string]interface{}) *map[string]interface{} {
 	if data == nil {
 	if data == nil {
 		return nil
 		return nil