浏览代码

Merge branch 'chart/15.3' into debug

Roc 1 年之前
父节点
当前提交
43cebc6f98
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 = "所选指标所选日期无值"