ソースを参照

修改导出限制

jingyuanchao 1 年間 前
コミット
21d21df1cc

+ 2 - 2
soc-modules/soc-modules-core/src/main/java/com/xunmei/core/evaluate/service/impl/CoreEvaluateTaskServiceImpl.java

@@ -197,9 +197,9 @@ public class CoreEvaluateTaskServiceImpl extends ServiceImpl<CoreEvaluateTaskMap
             throw new RuntimeException("导出数据为空!");
         }
 
-        if (list.size() > 10000) {
+       /* if (list.size() > 10000) {
             throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-        }
+        }*/
 
         String baseHeaderName=evaluateTaskStatisticsDTO.getEvaluateName();
         String header=baseHeaderName+"(" + evaluateTaskStatisticsDTO.getTitle();

+ 2 - 2
soc-modules/soc-modules-core/src/main/java/com/xunmei/core/reportForms/monitor/service/impl/MonitorAccessReportServiceImpl.java

@@ -249,9 +249,9 @@ public class MonitorAccessReportServiceImpl implements MonitorAccessReportServic
             MonitoringAccessVO monitoringAccessVO = monitoringAccessVOS.get(i);
             monitoringAccessVO.setOrderNum(i + 1);
         }
-        if (monitoringAccessVOS.size() > 10000) {
+        /*if (monitoringAccessVOS.size() > 10000) {
             throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-        }
+        }*/
         String baseHeaderName = "监控调阅情况表";
         String header = getTitle(monitoringAccessDTO);
         response.setContentType("application/vnd.ms-excel");

+ 8 - 8
soc-modules/soc-modules-core/src/main/java/com/xunmei/core/reportForms/resumption/service/impl/ResumptionReportServiceImpl.java

@@ -327,9 +327,9 @@ public class ResumptionReportServiceImpl implements ResumptionReportService {
         if (ObjectUtil.isEmpty(report)) {
             throw new RuntimeException("导出数据为空!");
         }
-        if (report.size() > 10000) {
+        /*if (report.size() > 10000) {
             throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-        }
+        }*/
         for (int i = 0; i < report.size(); i++) {
             ResumptionDayVO resumptionDayVO = report.get(i);
             resumptionDayVO.setOrderNum(i + 1);
@@ -358,9 +358,9 @@ public class ResumptionReportServiceImpl implements ResumptionReportService {
         if (ObjectUtil.isEmpty(report)) {
             throw new RuntimeException("导出数据为空!");
         }
-        if (report.size() > 10000) {
+        /*if (report.size() > 10000) {
             throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-        }
+        }*/
         for (int i = 0; i < report.size(); i++) {
             IntrusionTestReportVO intrusionTestReportVO = report.get(i);
             intrusionTestReportVO.setOrderNum(i + 1);
@@ -492,9 +492,9 @@ public class ResumptionReportServiceImpl implements ResumptionReportService {
         if (ObjectUtil.isEmpty(report)) {
             throw new RuntimeException("导出数据为空!");
         }
-        if (report.size() > 10000) {
+        /*if (report.size() > 10000) {
             throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-        }
+        }*/
         for (int i = 0; i < report.size(); i++) {
             IntrusionTestReportVO intrusionTestReportVO = report.get(i);
             intrusionTestReportVO.setOrderNum(i + 1);
@@ -708,9 +708,9 @@ public class ResumptionReportServiceImpl implements ResumptionReportService {
         if (ObjectUtil.isEmpty(report)) {
             throw new RuntimeException("导出数据为空!");
         }
-        if (report.size() > 10000) {
+        /*if (report.size() > 10000) {
             throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-        }
+        }*/
         for (int i = 0; i < report.size(); i++) {
             LhSelfBankInspectionReport intrusionTestReportVO = report.get(i);
             intrusionTestReportVO.setOrderNum(i + 1);

+ 4 - 4
soc-modules/soc-modules-core/src/main/java/com/xunmei/core/reportForms/safetyInspect/service/impl/SafetyInspectServiceImpl.java

@@ -315,9 +315,9 @@ public class SafetyInspectServiceImpl implements SafetyInspectService {
             SafetyInspectVO safetyInspectVO = safetyInspectVOS.get(i);
             safetyInspectVO.setOrderNum(i + 1);
         }
-        if (safetyInspectVOS.size() > 10000) {
+       /* if (safetyInspectVOS.size() > 10000) {
             throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-        }
+        }*/
 
         String baseHeaderName = "行社全面检查情况表";
         String header = baseHeaderName + "(" + safetyInspectDTO.getYear() + ")";
@@ -351,9 +351,9 @@ public class SafetyInspectServiceImpl implements SafetyInspectService {
             SelfInspectVO safetyInspectVO = safetyInspectVOS.get(i);
             safetyInspectVO.setOrderNum(i + 1);
         }
-        if (safetyInspectVOS.size() > 10000) {
+        /*if (safetyInspectVOS.size() > 10000) {
             throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-        }
+        }*/
         String baseHeaderName = "网点负责人自查情况表";
         String header;
         if (safetyInspectDTO.getCycle() == 1) {

+ 2 - 2
soc-modules/soc-modules-core/src/main/java/com/xunmei/core/retrieval/service/impl/CoreMonitoringRetrievalTaskServiceImpl.java

@@ -129,9 +129,9 @@ public class CoreMonitoringRetrievalTaskServiceImpl extends ServiceImpl<CoreMoni
         if (ObjectUtil.isEmpty(list)) {
             throw new RuntimeException("导出数据为空!");
         }
-        if (list.size() > 50000) {
+        /*if (list.size() > 50000) {
             throw new RuntimeException("导出数据量过大(单次导出限量50000条数据),请填写条件分批导出");
-        }
+        }*/
         for (int i = 0; i < list.size(); i++) {
             CoreMonitoringRetrievalTaskExcelVo vo = list.get(i);
             vo.setStatusText(listDict.stream().filter(d -> d.getDictValue().equals(vo.getStatus())).findFirst().orElse(new SysDictData()).getDictLabel());

+ 1 - 3
soc-modules/soc-modules-core/src/main/java/com/xunmei/core/safetyCheck/service/impl/CoreSafetyTaskServiceImpl.java

@@ -326,9 +326,7 @@ public class CoreSafetyTaskServiceImpl extends ServiceImpl<CoreSafetyTaskMapper,
                     task.setSubmitName(roleNames);
                 }
             }
-            if (list.size() > 10000) {
-                throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-            }
+
         }
 
         return list;

+ 6 - 6
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/controller/SysDeptController.java

@@ -89,9 +89,9 @@ public class SysDeptController extends BaseController {
         constructionDetailExports.forEach(e -> {
             e.setXh(String.valueOf(xh.getAndIncrement()));
         });
-        if (constructionDetailExports.size() > 10000) {
+        /*if (constructionDetailExports.size() > 10000) {
             throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-        }
+        }*/
         try {
             // 设置响应头
             response.addHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode("物防建设达标情况明细", "utf-8"));
@@ -120,9 +120,9 @@ public class SysDeptController extends BaseController {
         securityWorkExportList.forEach(e -> {
             e.setXh(String.valueOf(xh.getAndIncrement()));
         });
-        if (securityWorkExportList.size() > 10000) {
+        /*if (securityWorkExportList.size() > 10000) {
             throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-        }
+        }*/
         try {
             // 设置响应头
             response.addHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode("安全保卫工作情况统计", "utf-8"));
@@ -150,9 +150,9 @@ public class SysDeptController extends BaseController {
         excel.forEach(e -> {
             e.setXh(String.valueOf(xh.getAndIncrement()));
         });
-        if (excel.size() > 10000) {
+        /*if (excel.size() > 10000) {
             throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-        }
+        }*/
         try {
             // 设置响应头
             response.addHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode("物防建设达标情况汇总", "utf-8"));

+ 6 - 6
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/controller/SysUserController.java

@@ -564,9 +564,9 @@ public class SysUserController extends BaseController {
                 e.setXh(String.valueOf(xh.getAndIncrement()));
             });
 
-            if (list.size() > 10000) {
+            /*if (list.size() > 10000) {
                 throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-            }
+            }*/
         }
 
         try {
@@ -597,9 +597,9 @@ public class SysUserController extends BaseController {
         securityUserExports.forEach(e -> {
             e.setXh(String.valueOf(xh.getAndIncrement()));
         });
-        if (securityUserExports.size() > 10000) {
+        /*if (securityUserExports.size() > 10000) {
             throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-        }
+        }*/
         try {
             // 设置响应头
             response.addHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode("用户数据", "utf-8"));
@@ -638,9 +638,9 @@ public class SysUserController extends BaseController {
             e.setXh(String.valueOf(xh.getAndIncrement()));
         });
 
-        if (list.size() > 10000) {
+        /*if (list.size() > 10000) {
             throw new RuntimeException("导出数据量过大(单次导出限量10000条数据),请填写条件分批导出");
-        }
+        }*/
         try {
             // 设置响应头
             response.addHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode("用户数据", "utf-8"));