|
@@ -377,6 +377,7 @@ func (this *ReportController) EditDayWeekChapter() {
|
|
reportInfo.LastModifyAdminName = sysUser.RealName
|
|
reportInfo.LastModifyAdminName = sysUser.RealName
|
|
reportInfo.ModifyTime = time.Now()
|
|
reportInfo.ModifyTime = time.Now()
|
|
|
|
|
|
|
|
+ updateCols := make([]string, 0)
|
|
reqTickerList := req.TickerList
|
|
reqTickerList := req.TickerList
|
|
// 更新章节及指标
|
|
// 更新章节及指标
|
|
contentSub := ""
|
|
contentSub := ""
|
|
@@ -405,6 +406,7 @@ func (this *ReportController) EditDayWeekChapter() {
|
|
|
|
|
|
if req.Title != "" {
|
|
if req.Title != "" {
|
|
reportChapterInfo.Title = req.Title
|
|
reportChapterInfo.Title = req.Title
|
|
|
|
+ updateCols = append(updateCols, "Title")
|
|
}
|
|
}
|
|
//reportChapterInfo.AddType = req.AddType
|
|
//reportChapterInfo.AddType = req.AddType
|
|
reportChapterInfo.Author = req.Author
|
|
reportChapterInfo.Author = req.Author
|
|
@@ -414,6 +416,7 @@ func (this *ReportController) EditDayWeekChapter() {
|
|
reportChapterInfo.ModifyTime = time.Now()
|
|
reportChapterInfo.ModifyTime = time.Now()
|
|
if req.CreateTime != `` {
|
|
if req.CreateTime != `` {
|
|
reportChapterInfo.CreateTime = req.CreateTime
|
|
reportChapterInfo.CreateTime = req.CreateTime
|
|
|
|
+ updateCols = append(updateCols, "CreateTime")
|
|
}
|
|
}
|
|
|
|
|
|
reportChapterInfo.LastModifyAdminId = sysUser.AdminId
|
|
reportChapterInfo.LastModifyAdminId = sysUser.AdminId
|
|
@@ -421,8 +424,7 @@ func (this *ReportController) EditDayWeekChapter() {
|
|
reportChapterInfo.ContentModifyTime = time.Now()
|
|
reportChapterInfo.ContentModifyTime = time.Now()
|
|
reportChapterInfo.ContentStruct = html.EscapeString(req.ContentStruct)
|
|
reportChapterInfo.ContentStruct = html.EscapeString(req.ContentStruct)
|
|
|
|
|
|
- updateCols := make([]string, 0)
|
|
|
|
- updateCols = append(updateCols, "Title", "AddType", "Author", "Content", "ContentSub", "IsEdit", "CreateTime", "ModifyTime")
|
|
|
|
|
|
+ updateCols = append(updateCols, "Author", "Content", "ContentSub", "IsEdit", "ModifyTime")
|
|
|
|
|
|
updateCols = append(updateCols, "LastModifyAdminId", "LastModifyAdminName", "ContentModifyTime", "ContentStruct")
|
|
updateCols = append(updateCols, "LastModifyAdminId", "LastModifyAdminName", "ContentModifyTime", "ContentStruct")
|
|
|
|
|