Commit dd20e44c55c520d259683a6ca3ddde459da59662
1 parent
758742377b
Exists in
master
and in
6 other branches
儿保登记统计打印时用多线程数据执行先后问题
Showing 1 changed file with 7 additions and 7 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyHealthFacade.java
View file @
dd20e44
... | ... | @@ -1070,7 +1070,7 @@ |
1070 | 1070 | |
1071 | 1071 | List<BabyModel> babykModelsList = (List<BabyModel>) pageResult.getGrid(); |
1072 | 1072 | |
1073 | - List<Future> listFuture = new ArrayList<>(); | |
1073 | +// List<Future> listFuture = new ArrayList<>(); | |
1074 | 1074 | |
1075 | 1075 | if (com.lyms.platform.operate.web.utils.CollectionUtils.isNotEmpty(babykModelsList)) { |
1076 | 1076 | for (final BabyModel babyModel : babykModelsList) { |
... | ... | @@ -1087,9 +1087,9 @@ |
1087 | 1087 | |
1088 | 1088 | // pageResult = findMongoPage(BabyCheckModel.class, new Query(criteriaCheck).with(new Sort(Sort.Direction.DESC, "created")), page, limit); |
1089 | 1089 | |
1090 | - listFuture.add(commonThreadPool.submit(new Callable() { | |
1091 | - @Override | |
1092 | - public Object call() throws Exception { | |
1090 | +// listFuture.add(commonThreadPool.submit(new Callable() { | |
1091 | +// @Override | |
1092 | +// public Object call() throws Exception { | |
1093 | 1093 | Criteria criteriaCheck = Criteria.where("buildId").in(babyModel.getId()); |
1094 | 1094 | List<BabyCheckModel> babyCheckModelList = mongoTemplate.find(new Query(criteriaCheck).with(new Sort(Sort.Direction.DESC, "created")), BabyCheckModel.class); |
1095 | 1095 | |
... | ... | @@ -1135,9 +1135,9 @@ |
1135 | 1135 | row.put("qhdHighRiskInfo", babyCheckModel.getQhdHighRiskInfo()); |
1136 | 1136 | // System.out.println("pcTime="+(System.currentTimeMillis()-pctime)); |
1137 | 1137 | } |
1138 | - return null; | |
1139 | - } | |
1140 | - })); | |
1138 | +// return null; | |
1139 | +// } | |
1140 | +// })); | |
1141 | 1141 | |
1142 | 1142 | |
1143 | 1143 | // 访视 |