Browse Source

no message

zhangchuanxing 3 months ago
parent
commit
c17959ef96
1 changed files with 4 additions and 0 deletions
  1. 4 0
      services/roadshow/report.go

+ 4 - 0
services/roadshow/report.go

@@ -303,6 +303,8 @@ func AddReportRecord(cont context.Context) (err error) {
 					if mapRsReportRecordPermission[pKey] {
 						continue
 					}
+					vP.CreatedTime = time.Now()
+					vP.ModifyTime = time.Now().Format(utils.FormatDateTime)
 					vP.RsCalendarId = v.RsCalendarId
 					itemsRs = append(itemsRs, vP)
 					mapRsReportRecordPermission[pKey] = true
@@ -313,6 +315,8 @@ func AddReportRecord(cont context.Context) (err error) {
 					if mapRsReportRecordPermission[pKey] {
 						continue
 					}
+					vP.CreatedTime = time.Now()
+					vP.ModifyTime = time.Now().Format(utils.FormatDateTime)
 					vP.RsCalendarId = v.RsCalendarId
 					itemsRs = append(itemsRs, vP)
 					mapRsReportRecordPermission[pKey] = true