Browse Source

fix:调整

Roc 1 year ago
parent
commit
b185aecc8d
1 changed files with 2 additions and 2 deletions
  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 = "所选指标所选日期无值"