浏览代码

fix总数限制

xuemingyang 3 年之前
父节点
当前提交
efa04dd7ae
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 3 0
      src/jfw/front/ws_dataExport.go
  2. 3 0
      src/jfw/modules/app/src/app/front/ws_dataExport.go

+ 3 - 0
src/jfw/front/ws_dataExport.go

@@ -203,6 +203,9 @@ func (w *WsDataExport) GetPreview() error {
 	//格式化字段
 	res_screen := dataexport.ScreenData(res, dataType, 20, kws)
 	list := dataexport.FormatExportData(public.Mgo_Ent, &res_screen, config.Sysconfig["webdomain"].(string), dataType, true)
+	if msgCount > 20000 {
+		msgCount = 20000
+	}
 	_res["data"] = subUrl(list, dataType)
 	_res["dataType"] = dataType
 	_res["total"] = msgCount

+ 3 - 0
src/jfw/modules/app/src/app/front/ws_dataExport.go

@@ -81,6 +81,9 @@ func (w *WsDataExport) GetPreview() error {
 		}
 	}
 	list := dataexport.FormatExportData(public.Mgo_Ent, &res_screen, config.Sysconfig["webdomain"].(string), dataType, true)
+	if msgCount > 20000 {
+		msgCount = 20000
+	}
 	_res["data"] = subUrl(list, dataType)
 	_res["dataType"] = dataType
 	_res["total"] = msgCount