Ver Fonte

fix总数限制

xuemingyang há 3 anos atrás
pai
commit
efa04dd7ae

+ 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