|
@@ -340,6 +340,27 @@ func (this *ActivityMeetCoAntroller) MeetingDo() {
|
|
|
utils.Rc.Delete(redisKey)
|
|
|
}()
|
|
|
}
|
|
|
+
|
|
|
+ var conditionOld string //点了到会,又点了取消的人,对应的活动标签给取消掉
|
|
|
+ conditionOld += ` AND s.is_meeting = 1 AND s.is_cancel = 0 AND s.do_fail_type =0 AND s.activity_id = ` + strconv.Itoa(activityId)
|
|
|
+ listOld, err := cygx.GetCygxActivitySignup(conditionOld)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取失败"
|
|
|
+ br.ErrMsg = "获取失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ var deleteUserids []int
|
|
|
+ sliceNew := strings.Split(meetingUids, ",")
|
|
|
+ mapNewUserIds := make(map[string]bool)
|
|
|
+ for _, v := range sliceNew {
|
|
|
+ mapNewUserIds[v] = true
|
|
|
+ }
|
|
|
+ for _, v := range listOld {
|
|
|
+ if !mapNewUserIds[strconv.Itoa(v.UserId)] {
|
|
|
+ deleteUserids = append(deleteUserids, v.UserId)
|
|
|
+ }
|
|
|
+ } //点了到会,又点了取消的人,对应的活动标签给取消掉 end
|
|
|
+
|
|
|
//加入缓存机制,避免创建同一个名称的指标 end
|
|
|
activityInfo, errInfo := cygx.GetAddActivityInfoById(activityId)
|
|
|
if activityInfo == nil {
|
|
@@ -445,6 +466,7 @@ func (this *ActivityMeetCoAntroller) MeetingDo() {
|
|
|
go cygxService.AddctivitySignupDetailList(itemDs, activityId) // 处理个人以及机构到会数量
|
|
|
go cygxService.ActivityUserLabelLogAdd(activityId, userIdArr) // 处理用户标签
|
|
|
go cygxService.YanXuanActivityPointsBillSubmitMeeting(activityId, AdminUser.AdminId) // 处理用户到会研选扣点
|
|
|
+ go cygxService.DeleteActivityWxUserRaiLabel(deleteUserids, activityId) // 点了到会,又点了取消的人,对应的活动标签给取消掉
|
|
|
//添加操作日志记录
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|