|
@@ -87,9 +87,9 @@ func (this *ActivityCoAntroller) ActivityList() {
|
|
|
whichDay := this.GetString("WhichDay")
|
|
|
isShowJurisdiction, _ := this.GetInt("IsShowJurisdiction")
|
|
|
keyWord := this.GetString("KeyWord")
|
|
|
+ keyWordSearch := this.GetString("KeyWord")
|
|
|
activeState := this.GetString("ActiveState")
|
|
|
label := this.GetString("Label")
|
|
|
-
|
|
|
//入参为 undefined 时的处理
|
|
|
if chartPermissionIds == "undefined" {
|
|
|
chartPermissionIds = ""
|
|
@@ -133,6 +133,7 @@ func (this *ActivityCoAntroller) ActivityList() {
|
|
|
if isShowJurisdiction == 1 && chartPermissionIds == "" && userType == 4 {
|
|
|
activityTypeIds = "1,3"
|
|
|
}
|
|
|
+
|
|
|
var startSize int
|
|
|
if pageSize <= 0 {
|
|
|
pageSize = utils.PageSize20
|
|
@@ -265,7 +266,6 @@ func (this *ActivityCoAntroller) ActivityList() {
|
|
|
} else {
|
|
|
condition += ` ORDER BY art.active_state ASC, art.activity_time ASC `
|
|
|
}
|
|
|
-
|
|
|
list, errList := models.GetActivityListAll(condition, pars, uid, startSize, pageSize)
|
|
|
if errList != nil {
|
|
|
br.Msg = "获取失败"
|
|
@@ -334,6 +334,14 @@ func (this *ActivityCoAntroller) ActivityList() {
|
|
|
expertTxt, _ := services.GetReportContentTextSub(v.Expert)
|
|
|
list[k].Expert = expertTxt
|
|
|
}
|
|
|
+ if keyWordSearch != "" {
|
|
|
+ keyWordItem := new(models.CygxUserSearchKeyWord)
|
|
|
+ keyWordItem.UserId = user.UserId
|
|
|
+ keyWordItem.KeyWord = keyWordSearch
|
|
|
+ keyWordItem.PageType = "ActivitSearch"
|
|
|
+ keyWordItem.CreateTime = time.Now()
|
|
|
+ go models.AddUserSearchKeyWord(keyWordItem)
|
|
|
+ }
|
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|
|
|
resp := new(models.GetCygxActivityListRep)
|
|
|
resp.List = list
|
|
@@ -875,6 +883,14 @@ func (this *ActivityCoAntroller) SignupAdd() {
|
|
|
br.Data = resp
|
|
|
return
|
|
|
}
|
|
|
+ var sellerName string
|
|
|
+ sellerName, err = models.GetCompanySellerName(user.CompanyId)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "报名失败!"
|
|
|
+ br.ErrMsg = "获取对应销售失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
//人数已满:FullStarffed、单机构超过两人:TwoPeople、爽约次数过多:BreakPromise、超时:Overtime 、成功:Success"`
|
|
|
//如果是下面几种情况则对报名信息做判断限制 (公司调研电话会(限制人数)、公司线下调研、专家/分析师线下沙龙)
|
|
|
if (activityInfo.ActivityTypeId == 3 && activityInfo.IsLimitPeople == 1) || activityInfo.ActivityTypeId > 3 {
|
|
@@ -918,6 +934,8 @@ func (this *ActivityCoAntroller) SignupAdd() {
|
|
|
//解除报名限制之后二次报名相同活动
|
|
|
if totalUserRestrictCount > 0 && totalRestrict == 0 && resp.GoBindEmail != true {
|
|
|
item.UserId = uid
|
|
|
+ item.RealName = user.RealName
|
|
|
+ item.SellerName = sellerName
|
|
|
item.ActivityId = activityId
|
|
|
item.CreateTime = time.Now()
|
|
|
item.Mobile = user.Mobile
|
|
@@ -962,6 +980,8 @@ func (this *ActivityCoAntroller) SignupAdd() {
|
|
|
|
|
|
if signupStatus != "Success" && totalMy == 0 && resp.GoBindEmail != true {
|
|
|
item.UserId = uid
|
|
|
+ item.RealName = user.RealName
|
|
|
+ item.SellerName = sellerName
|
|
|
item.ActivityId = activityId
|
|
|
item.CreateTime = time.Now()
|
|
|
item.Mobile = user.Mobile
|
|
@@ -1006,6 +1026,8 @@ func (this *ActivityCoAntroller) SignupAdd() {
|
|
|
}
|
|
|
if signupStatus == "Success" && resp.GoBindEmail != true {
|
|
|
item.UserId = uid
|
|
|
+ item.RealName = user.RealName
|
|
|
+ item.SellerName = sellerName
|
|
|
item.ActivityId = activityId
|
|
|
item.CreateTime = time.Now()
|
|
|
item.Mobile = user.Mobile
|