Browse Source

feat: 商机管理状态

zhangxinlei1996 2 năm trước cách đây
mục cha
commit
2b0ff07a68
1 tập tin đã thay đổi với 2 bổ sung5 xóa
  1. 2 5
      service/power.go

+ 2 - 5
service/power.go

@@ -205,12 +205,10 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
 						"$gt": time.Now().Unix(),
 					},
 				})
-				log.Println("~~~~~~~~~~~", edata)
 				eudata, _ := this.Conn.MgoJy.FindOne("ent_user", map[string]interface{}{
 					"i_entid":  entId,
 					"i_userid": entnicheUserId,
 				})
-				log.Println("~~~~~~~~~~~", eudata)
 				if eudata != nil && len(*eudata) > 0 {
 					i_ts_guide := common.Int64All((*eudata)["i_ts_guide"])
 					free.TsGuide = i_ts_guide
@@ -248,7 +246,6 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
 							NewCitys:        newcitysArr,
 						}
 					}
-					fmt.Println("@@@@@@@@@@@@@@@@", common.Int64All((*eudata)["i_member_status"]))
 					if common.Int64All((*eudata)["i_member_status"]) > 0 {
 						member.PowerType = 2
 						status := common.Int64All((*eudata)["i_member_status"])
@@ -307,9 +304,9 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
 							continue
 						}
 						entnicheStatus := common.Int64All(v["status"])
-						entnichePower := int64(0)
+						entnichePower := common.Int64All(v["power"])
 						if entnicheStatus == 1 {
-							entnichePower = common.Int64All(v["power"])
+							entnicheStatus = entnichePower
 						}
 						entniche.IsNew = common.Int64All(v["isNew"])
 						entniche.Status = entnicheStatus    //企业是否有商机管理权限