Browse Source

结算单导出优化

lihong 2 years ago
parent
commit
55bad06450

+ 3 - 12
src/main/java/thyyxxk/webserver/service/medicalinsurance/SetlListUpldService.java

@@ -1363,18 +1363,9 @@ public class SetlListUpldService {
         if(ListUtil.notBlank(param.getSiSetlinfoTemps())){
             list.addAll(param.getSiSetlinfoTemps());
         }else {
-            param.setPageSize(100);
-            int currentPage = (int) Math.ceil(param.getTotal() / (double) 100);
-            JSONObject obj = new JSONObject();
-            obj.put("jdtType", "download");
-            obj.put("jdtTitle", "导出Excel");
-            obj.put("total", param.getTotal());
-            for (int i = 0; i < currentPage; i++) {
-                param.setCurrentPage(i + 1);
-                list.addAll(huoQuJieSuanRenYuan(param).getData().getRecords());
-                obj.put("index", list.size());
-                WebSocketServer.sendMessageByUserCode(TokenUtil.getTokenUserId(), SocketMsg.socketVo(Message.JDT_MESSAGE, obj));
-            }
+            param.setPageSize(10000);
+            param.setCurrentPage(1);
+            list.addAll(huoQuJieSuanRenYuan(param).getData().getRecords());
         }
         String[] title = {"姓名", "审核状态","质控提醒","上传截止日期","上传状态", "申报类型", "出院科室", "住院号/门诊号", "性别",
                 "住院天数", "诊断编码", "诊断名称", "治疗方式", "总费用", "报销金额",