xingzai před 1 rokem
rodič
revize
cc9932a2c8
2 změnil soubory, kde provedl 24 přidání a 2 odebrání
  1. 23 2
      controllers/activity.go
  2. 1 0
      models/activity_signup.go

+ 23 - 2
controllers/activity.go

@@ -914,6 +914,10 @@ func (this *ActivityController) SignupAdd() {
 		}
 		models.BindUserOutboundMobileByMobile(user.Mobile, countryCode, uid)
 	}
+	// 判断是否属于研选类型的活动
+	if strings.Contains(activityInfo.ChartPermissionName, utils.CHART_PERMISSION_NAME_YANXUAN) {
+		resp.IsResearch = true
+	}
 	resp.SignupType = signupType
 	resp.SignupStatus = signupStatus
 	//resp.HasPermission = hasPermission
@@ -1124,7 +1128,10 @@ func (this *ActivityController) MeetingReminderAdd() {
 		resp.SellerName = sellerName
 		resp.SellerMobile = sellerMobile
 	}
-
+	// 判断是否属于研选类型的活动
+	if strings.Contains(activityInfo.ChartPermissionName, utils.CHART_PERMISSION_NAME_YANXUAN) {
+		resp.IsResearch = true
+	}
 	br.Ret = 200
 	br.Success = true
 	br.Msg = "操作成功"
@@ -1309,7 +1316,10 @@ func (this *ActivityController) ActivityAppointmentAdd() {
 		resp.SellerName = sellerName
 		resp.SellerMobile = sellerMobile
 	}
-
+	// 判断是否属于研选类型的活动
+	if strings.Contains(activityInfo.ChartPermissionName, utils.CHART_PERMISSION_NAME_YANXUAN) {
+		resp.IsResearch = true
+	}
 	br.Ret = 200
 	br.Success = true
 	br.Msg = "操作成功"
@@ -1559,6 +1569,10 @@ func (this *ActivityController) AskAdd() {
 		resp.SellerName = sellerName
 		resp.SellerMobile = sellerMobile
 	}
+	// 判断是否属于研选类型的活动
+	if strings.Contains(activityInfo.ChartPermissionName, utils.CHART_PERMISSION_NAME_YANXUAN) {
+		resp.IsResearch = true
+	}
 	br.Ret = 200
 	br.Success = true
 	br.Data = resp
@@ -1701,6 +1715,10 @@ func (this *ActivityController) ActivityListSearch() {
 		item.IsYidongConduct = v.IsYidongConduct
 		item.IsCanOutboundCall = v.IsCanOutboundCall
 		item.IsLimitPeople = v.IsLimitPeople
+		// 判断是否属于研选类型的活动
+		if strings.Contains(v.ChartPermissionName, utils.CHART_PERMISSION_NAME_YANXUAN) {
+			item.IsResearch = true
+		}
 		if v.VoiceList != nil || v.VideoDetail != nil {
 			item.AudioLink = true
 			if v.FileType == 1 {
@@ -1912,6 +1930,9 @@ func (this *ActivityController) ScheduleList() {
 		if isShow && strings.Contains(v.ChartPermissionName, "研选") {
 			list[k].IsShowSustainable = true
 		}
+		if strings.Contains(v.ChartPermissionName, utils.CHART_PERMISSION_NAME_YANXUAN) {
+			list[k].IsResearch = true
+		}
 		if strings.Contains(v.ChartPermissionName, "研选") && v.ActivityTypeId == 1 {
 			list[k].ActivityTypeName = "买方研选电话会"
 			//list[k].ImgUrlText = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202112/20211221/bIdfv8t86xrFRpDOeGGHXOmKEuKl.png"

+ 1 - 0
models/activity_signup.go

@@ -39,6 +39,7 @@ type SignupStatus struct {
 	CountryCode       string `description:"外呼手机号区号"`
 	GoOutboundMobile  bool   `description:"是否去绑定手机号"`
 	GoBindEmail       bool   `description:"是否去绑定邮箱"`
+	IsResearch        bool   `description:"是否属于研选"`
 }
 type ActivitySingnupRep struct {
 	ActivityId int `description:"活动id"`