|
@@ -445,7 +445,9 @@ func (this *ReportController) RecentList() {
|
|
|
br.ErrMsg = "研报列表查询失败,系统异常,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- reportPdfList, err := models.GetReportPdfListByCondition("", []interface{}{}, 0, 3)
|
|
|
+ // 查询已发布的pdf
|
|
|
+ condition := ` AND state=1 `
|
|
|
+ reportPdfList, err := models.GetReportPdfListByCondition(condition, []interface{}{}, 0, 3)
|
|
|
if err != nil {
|
|
|
br.Msg = "研报列表查询失败"
|
|
|
br.ErrMsg = "研报列表查询失败,系统异常,Err:" + err.Error()
|
|
@@ -489,7 +491,7 @@ func (this *ReportController) RecentList() {
|
|
|
Stage: v.Stage,
|
|
|
Author: v.Author,
|
|
|
ReportType: utils.ReportTypePdf,
|
|
|
- PublishTime: v.PublishTime.Format(utils.FormatDate),
|
|
|
+ PublishTime: v.PublishTime.Format(utils.FormatDateTime),
|
|
|
ModifyTime: v.ModifyTime,
|
|
|
})
|
|
|
}
|