diff --git a/data/竞品报告导入模板.xlsx b/data/竞品报告导入模板.xlsx index 74ebedb..0f5505d 100644 Binary files a/data/竞品报告导入模板.xlsx and b/data/竞品报告导入模板.xlsx differ diff --git a/pkg/service/cast/report.go b/pkg/service/cast/report.go index 59ff30a..ed3cd83 100644 --- a/pkg/service/cast/report.go +++ b/pkg/service/cast/report.go @@ -301,7 +301,15 @@ func ImportCompetitiveReportBatch(ctx *gin.Context) { // 解析标题(C列,row[2]) if len(row) > 2 { - temp.Title = utils.CleanString(row[2]) + if temp.Title == "" { + // 获取中国时区时间 + loc, _ := time.LoadLocation("Asia/Shanghai") + now := time.Now().In(loc) + nowDate := now.Format("2006-01-02") + temp.Title = nowDate + temp.ArtistName + "老师竞品报告" + } else { + temp.Title = utils.CleanString(row[2]) + } } // 解析报告内容(D列,row[3])