kobe6258 6 месяцев назад
Родитель
Сommit
ab0443a256
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      models/report/report.go

+ 1 - 1
models/report/report.go

@@ -82,7 +82,7 @@ func InsertOrUpdateReport(list []Report, source string) (result []Report, err er
 		if err != nil {
 			logger.Error("查询数据库失败研报失败:%v,发布时间不更新", err)
 		}
-		if dbReport.Status == StatusPublish {
+		if dbReport.SendStatus == SEND {
 			list[i].PublishedTime = dbReport.PublishedTime
 		}
 	}