|
|
@@ -24,6 +24,7 @@ import com.uas.report.service.FileService;
|
|
|
import com.uas.report.service.PrintService;
|
|
|
import com.uas.report.util.ArrayUtils;
|
|
|
import com.uas.report.util.FileUtils;
|
|
|
+import com.uas.report.util.Platform;
|
|
|
import com.uas.report.util.ReportConstants;
|
|
|
import com.uas.report.util.ReportUtils;
|
|
|
import com.uas.report.util.StringUtils;
|
|
|
@@ -137,7 +138,7 @@ public class PrintController {
|
|
|
HttpServletResponse response) {
|
|
|
userName = userName == null ? null : userName.toUpperCase();
|
|
|
ReportUtils.checkParameters(userName, reportName);
|
|
|
- if (printService.overload(userName, profile, reportName, whereCondition, otherParameters)) {
|
|
|
+ if (printService.overload(userName, profile, reportName, whereCondition, otherParameters, Platform.PC)) {
|
|
|
throw new ReportException("数据量过大,无法提供服务");
|
|
|
}
|
|
|
String masterOfJrxml = printService.getMasterOfJrxml(userName, reportName);
|
|
|
@@ -233,7 +234,7 @@ public class PrintController {
|
|
|
HttpServletRequest request, HttpServletResponse response) {
|
|
|
userName = userName == null ? null : userName.toUpperCase();
|
|
|
ReportUtils.checkParameters(userName, reportName);
|
|
|
- if (printService.overload(userName, profile, reportName, whereCondition, otherParameters)) {
|
|
|
+ if (printService.overload(userName, profile, reportName, whereCondition, otherParameters, Platform.PC)) {
|
|
|
throw new ReportException("数据量过大,无法提供服务");
|
|
|
}
|
|
|
String masterOfJrxml = printService.getMasterOfJrxml(userName, reportName);
|
|
|
@@ -314,7 +315,7 @@ public class PrintController {
|
|
|
ReportUtils.checkParameters(userName, reportName);
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
// 判断是否过载
|
|
|
- if (printService.overload(userName, profile, reportName, whereCondition, otherParameters)) {
|
|
|
+ if (printService.overload(userName, profile, reportName, whereCondition, otherParameters, Platform.PHONE)) {
|
|
|
result.put("data", "");
|
|
|
result.put("pageSize", 0);
|
|
|
result.put("overload", true);
|