zhangchuanxing 2 bulan lalu
induk
melakukan
c17959ef96
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  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