浏览代码

fix: 新增智能研报更新时间

hsun 1 年之前
父节点
当前提交
3e46388e95
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      controllers/smart_report/smart_report.go

+ 3 - 1
controllers/smart_report/smart_report.go

@@ -95,6 +95,8 @@ func (this *SmartReportController) Add() {
 	item.State = smart_report.SmartReportStateWaitPublish
 	item.CreateTime = time.Now().Local()
 	item.ModifyTime = time.Now().Local()
+	item.ContentModifyTime = time.Now().Local()
+
 	// 继承报告
 	if req.AddType == 2 {
 		ob := new(smart_report.SmartReport)
@@ -453,7 +455,7 @@ func (this *SmartReportController) Publish() {
 	recordItem := &models.ReportStateRecord{
 		ReportId:   req.SmartReportId,
 		ReportType: 2,
-		State:     req.PublishState,
+		State:      req.PublishState,
 		AdminId:    this.SysUser.AdminId,
 		AdminName:  this.SysUser.AdminName,
 		CreateTime: time.Now(),