Explorar el Código

fix:设置暂停时间,如果没有设置,那么返回空串

Roc hace 8 meses
padre
commit
a2e15bf19b
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      controllers/report.go

+ 7 - 0
controllers/report.go

@@ -130,6 +130,13 @@ func (this *ReportController) GetDayWeekReportChapterTypeList() {
 					v.PauseStartTime = ``
 					v.PauseEndTime = ``
 				}
+			} else {
+				if v.PauseStartTime == `0001-01-01` {
+					v.PauseStartTime = ``
+				}
+				if v.PauseEndTime == `0001-01-01` {
+					v.PauseEndTime = ``
+				}
 			}
 			weekList = append(weekList, v)
 		}