Explorar el Código

Merge branch 'chart/15.3' into debug

Roc hace 1 año
padre
commit
43cebc6f98
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      controllers/data_manage/edb_info.go

+ 2 - 2
controllers/data_manage/edb_info.go

@@ -4102,8 +4102,8 @@ func (this *EdbInfoController) GetEdbBeforeAndAfterDateData() {
 	}
 
 	lenBeforeList := len(beforeList)
-	if isDayDate && lenBeforeList > 0 {
-		if beforeList[lenBeforeList-1].DataTime != startDate {
+	if isDayDate {
+		if lenBeforeList <= 0 || beforeList[lenBeforeList-1].DataTime != startDate {
 			br.Ret = 200
 			br.Success = true
 			br.Msg = "所选指标所选日期无值"