|
|
@@ -307,16 +307,17 @@ public class PrintController {
|
|
|
otherParameters, 1);
|
|
|
Integer pageSize = null;
|
|
|
if (result != null && result.containsKey("data") && result.containsKey("pageSize")) {
|
|
|
- pageSize = (Integer) result.remove("pageSize");
|
|
|
+ pageSize = (Integer) result.get("pageSize");
|
|
|
}
|
|
|
if (pageSize == null) {
|
|
|
throw new ReportException("获取预览数据失败");
|
|
|
}
|
|
|
if (pageSize > MAX_PAGE_SIZE) {
|
|
|
- result = new HashMap<>();
|
|
|
+ result.put("data", "");
|
|
|
result.put("overload", "true");
|
|
|
} else {
|
|
|
result = printService.preview(userName, profile, reportName, whereCondition, otherParameters, null);
|
|
|
+ result.put("overload", false);
|
|
|
}
|
|
|
return result;
|
|
|
}
|