소스 검색

报告同步

kobe6258 6 달 전
부모
커밋
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
 		}
 	}