|
@@ -61,6 +61,18 @@ func PublishSmartReport(cont context.Context) (err error) {
|
|
|
}
|
|
|
_ = SmartReportElasticUpsert(item.SmartReportId, 2)
|
|
|
}()
|
|
|
+
|
|
|
+ recordItem := &models.ReportStateRecord{
|
|
|
+ ReportId: item.SmartReportId,
|
|
|
+ ReportType: 2,
|
|
|
+ State: 2,
|
|
|
+ AdminId: item.AdminId,
|
|
|
+ AdminName: item.AdminRealName,
|
|
|
+ CreateTime: time.Now(),
|
|
|
+ }
|
|
|
+ go func() {
|
|
|
+ _, _ = models.AddReportStateRecord(recordItem)
|
|
|
+ }()
|
|
|
}
|
|
|
return
|
|
|
}
|