浏览代码

查询的数据截止时间错误

xyxie 1 年之前
父节点
当前提交
035a386972
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/index_data.go

+ 1 - 1
controllers/index_data.go

@@ -85,7 +85,7 @@ func (this *IndexController) IndexDataPageList() {
 	}
 
 	if req.EndDate == "" {
-		req.EndDate = time.Now().Format(utils.FormatDate)
+		req.EndDate = time.Now().AddDate(0, 0, 1).Format(utils.FormatDate)
 	}
 
 	list, err := services.GetIndexDataPageList(req.Source, req.CurrPage, req.PageSize, req.StartDate, req.EndDate)