|
@@ -1547,6 +1547,7 @@ func (this *CalendarController) Edit() {
|
|
|
calendar := roadshow.RsCalendar{
|
|
|
RsCalendarId: req.RsCalendarId,
|
|
|
SysUserId: sysUser.AdminId,
|
|
|
+ CompanyName: req.CompanyName,
|
|
|
Title: getTitle(req.ActivityType, req.RoadshowType, req.ActivityCategory, req.RoadshowPlatform, req.Province, req.City),
|
|
|
}
|
|
|
researcher := *rsCalendarResearcherItem
|
|
@@ -1556,6 +1557,7 @@ func (this *CalendarController) Edit() {
|
|
|
researcher.EndTime = v.EndTime
|
|
|
researcher.StartWeek = v.StartWeek
|
|
|
researcher.EndWeek = v.EndWeek
|
|
|
+ rs.DeleteSHCalendar(req.RsCalendarResearcherId) // 删除老的
|
|
|
go rs.CalendarToSH(calendar, researcher)
|
|
|
|
|
|
if req.EditType == 2 {
|
|
@@ -1910,15 +1912,16 @@ func (this *CalendarController) Delete() {
|
|
|
this.FailWithMessage("删除失败!", "删除失败!UpdateCalendarResearcher:"+err.Error())
|
|
|
return
|
|
|
}
|
|
|
- itemApiLog := new(roadshow.RsCalendarApiLog)
|
|
|
- itemApiLog.CreateTime = time.Now()
|
|
|
- itemApiLog.Remark = "小程序CRM手动删除"
|
|
|
- itemApiLog.Url = sysUser.RealName
|
|
|
- itemApiLog.Body = ""
|
|
|
- itemApiLog.Result = ""
|
|
|
- itemApiLog.RsCalendarResearcherId = req.RsCalendarResearcherId
|
|
|
- go roadshow.AddRsCalendarApiLog(itemApiLog)
|
|
|
}
|
|
|
+ itemApiLog := new(roadshow.RsCalendarApiLog)
|
|
|
+ itemApiLog.CreateTime = time.Now()
|
|
|
+ itemApiLog.Remark = "小程序CRM手动删除"
|
|
|
+ itemApiLog.Url = sysUser.RealName
|
|
|
+ itemApiLog.Body = ""
|
|
|
+ itemApiLog.Result = ""
|
|
|
+ itemApiLog.RsCalendarResearcherId = req.RsCalendarResearcherId
|
|
|
+ itemApiLog.RsCalendarId = req.RsCalendarId
|
|
|
+ go roadshow.AddRsCalendarApiLog(itemApiLog)
|
|
|
//`status` int(11) DEFAULT '0' COMMENT '1:待接受,2:已接受,3:已拒绝,4:已删除,5:已撤回,6:已结束',
|
|
|
for _, rsCalendarResearcherItem := range rsCalendarResearcherItemList {
|
|
|
//待接受、已接受的情况,需要同步删除上海那边的日程
|