|
@@ -489,6 +489,7 @@ type ReportDetail struct {
|
|
ReportCreateTime string `gorm:"column:report_create_time" description:"报告时间创建时间"`
|
|
ReportCreateTime string `gorm:"column:report_create_time" description:"报告时间创建时间"`
|
|
ReportSource int `gorm:"column:report_source" description:"报告来源:1-系统内;2-智力共享"`
|
|
ReportSource int `gorm:"column:report_source" description:"报告来源:1-系统内;2-智力共享"`
|
|
OutReportId string `gorm:"column:out_report_id" description:"外部报告ID(或编码)"`
|
|
OutReportId string `gorm:"column:out_report_id" description:"外部报告ID(或编码)"`
|
|
|
|
+ MsgSendTime string `gorm:"column:msg_send_time" description:"消息推送时间"`
|
|
}
|
|
}
|
|
|
|
|
|
func GetReportById(reportId int) (item *ReportDetail, err error) {
|
|
func GetReportById(reportId int) (item *ReportDetail, err error) {
|
|
@@ -534,6 +535,12 @@ func convertReportToReportDetail(report Report) (*ReportDetail, error) {
|
|
reportDetail.ReportCreateTime = ``
|
|
reportDetail.ReportCreateTime = ``
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if !report.MsgSendTime.IsZero() {
|
|
|
|
+ reportDetail.MsgSendTime = report.MsgSendTime.Format(utils.FormatDateTime)
|
|
|
|
+ } else {
|
|
|
|
+ reportDetail.MsgSendTime = ``
|
|
|
|
+ }
|
|
|
|
+
|
|
return reportDetail, nil
|
|
return reportDetail, nil
|
|
}
|
|
}
|
|
|
|
|