Browse Source

no message

zhangchuanxing 1 month ago
parent
commit
fee6ae4d60
1 changed files with 9 additions and 6 deletions
  1. 9 6
      models/roadshow/rs_calendar_meeting_user.go

+ 9 - 6
models/roadshow/rs_calendar_meeting_user.go

@@ -69,15 +69,18 @@ func MultiAddRsCalendarMeetingUser(items []*RsCalendarMeetingUser, roadShowTheme
 		}
 	}()
 
-	sql := ` UPDATE rs_calendar_meeting_user SET road_show_theme=? WHERE rs_calendar_id=? `
-	_, err = to.Raw(sql, roadShowTheme, rsCalendarId).Exec()
-	if err != nil {
-		return
-	}
+	//sql := ` UPDATE rs_calendar_meeting_user SET road_show_theme=? WHERE rs_calendar_id=? `
+	//_, err = to.Raw(sql, roadShowTheme, rsCalendarId).Exec()
+	//if err != nil {
+	//	return
+	//}
 
 	//删除老的数据
-	sql = ` DELETE FROM rs_calendar_meeting_user WHERE rs_calendar_id=? `
+	sql := ` DELETE FROM rs_calendar_meeting_user WHERE rs_calendar_id=? `
 	_, err = to.Raw(sql, rsCalendarId).Exec()
+	if err != nil {
+		return
+	}
 
 	if len(items) > 0 {
 		_, err = to.InsertMulti(len(items), items)