|
@@ -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)
|